-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add colab badge to notebooks #501
Conversation
good idea! maybe have a
or similar block at the beginning of ll example notebooks? |
📚 Documentation |
…o colab_notebooks
…o colab_notebooks
have you considered writing one script that a) adds the cell and b) calls jupytext? I.e. added the conversion also to the script? |
Tried to add the
block but in the script it is invalid code and when I add it to the notebook during conversion it is detected as a modification to the notebook which leads to an endless loop of translating py to ipynb -> adding cell -> committing -> translating py ti ipynb -> adding cell -> committing... |
I would add the following code cell in the try:
import mrpro
except ImportError:
subprocess.check_call([sys.executable, "-m", "pip", "install", 'mrpro'])
finally:
import mrpro Unfortunetely it would not be enough only to add this to the notebooks in the docs since the google colab references to the github file representation. |
implemented in #537 |
No description provided.