Bug
The notebook cookbook/tutorials/binder_design.ipynb references a hardcoded
app name with a timestamp suffix that does not match the app name defined in
binder_design.py, causing a NotFoundError when running the "App setup" cell.
Steps to reproduce
- Deploy following the notebook instructions:
modal deploy binder_design.py
- Run the "App setup" cell in the notebook
- Run any
app.design.spawn(...) call
Error
NotFoundError: Lookup failed for Cls 'ESMFold2DesignModal' from the
'esmfold2-design-jun1-12pm' app (in the 'main' environment):
App 'esmfold2-design-jun1-12pm' not found in environment 'main'.
Root cause
In binder_design.ipynb, the "App setup" cell contains:
ESMFold2Design = modal.Cls.from_name("esmfold2-design-jun1-12pm", "ESMFold2DesignModal")
But binder_design.py defines the app as:
app = modal.App(name="esmfold2-design", ...)
The -jun1-12pm suffix appears to be a leftover from internal testing
and was not cleaned up before release.
Fix
# cookbook/tutorials/binder_design.ipynb — App setup cell
ESMFold2Design = modal.Cls.from_name("esmfold2-design", "ESMFold2DesignModal")
Environment
- Tested on Modal Notebooks
esm installed from git+https://github.com/Biohub/esm.git@main
- Confirmed working after applying the fix above
Bug
The notebook
cookbook/tutorials/binder_design.ipynbreferences a hardcodedapp name with a timestamp suffix that does not match the app name defined in
binder_design.py, causing aNotFoundErrorwhen running the "App setup" cell.Steps to reproduce
modal deploy binder_design.pyapp.design.spawn(...)callError
NotFoundError: Lookup failed for Cls 'ESMFold2DesignModal' from the
'esmfold2-design-jun1-12pm' app (in the 'main' environment):
App 'esmfold2-design-jun1-12pm' not found in environment 'main'.
Root cause
In
binder_design.ipynb, the "App setup" cell contains:But
binder_design.pydefines the app as:The
-jun1-12pmsuffix appears to be a leftover from internal testingand was not cleaned up before release.
Fix
Environment
esminstalled fromgit+https://github.com/Biohub/esm.git@main