Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grid wrapper for notebooks #22

Open
blumenstiel opened this issue Nov 6, 2023 · 2 comments
Open

grid wrapper for notebooks #22

blumenstiel opened this issue Nov 6, 2023 · 2 comments

Comments

@blumenstiel
Copy link
Collaborator

Grid wrapper for notebook is not working. The code imports the converted notebook. Therefore, every code in the notebook is executed.

@romeokienzler
Copy link
Member

romeokienzler commented Feb 21, 2024

@blumenstiel I think there is a solution

The grid wrapper can call the notebook in the following way

os.environ["source_folder"] = '/data/provided/by/gridwrapper/'
os.environ["target_folder"] = '/data/read/by/gridwrapper'
os.system('ipython wrapped_operator.ipynb')

This way, wrapped_operator.ipynb doesn't even have to know anything of it running in a grid computing context

@blumenstiel
Copy link
Collaborator Author

This assumes that the notebook follows a specific notation. Another solution could be that each wrapped notebook needs a batch (str) env input and needs to adjust the other variables based on this input.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants