Converting a Jupyter notebook to the latest version
Make your old notebook shiny and new again with one simple command
Last updated
Was this helpful?
Make your old notebook shiny and new again with one simple command
Last updated
Was this helpful?
Sometimes, when opening a Jupyter notebook, you may encounter an error telling you it needs to be updated to the latest version. The following command takes the file old-notebook.ipynb
, updates it to the latest version, and saves the result to the file new-notebook.ipynb
in the ../results
folder:
Execute this command via a , then download the resulting new-notebook.ipynb
from the /results folder, close Cloud Workstation, and upload the notebook back to you capsule, replacing the old one. (These steps are necessary because Cloud Workstation sessions are not designed to sync back files stored in your /results folder.)
Use a bash script. Place all notebooks in the /code
pane and execute the following in a shell script (file ending with extension .sh
):
Remember to repeat the sequence of downloading the files from Cloud Workstation, then re-uploading them to your capsule.