When you try to open 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:

jupyter nbconvert --to notebook old-notebook.ipynb --output ../results/new-notebook.ipynb 

Remember you can execute this command right in your Code Ocean capsule and download the result if you like!

How can I convert many notebooks at once? 

Use a bash script. Place all notebooks in the /code  pane and execute the following in a shell script (file ending with extension .sh ):

for i in $(ls *.ipynb ); do
  jupyter nbconvert --to notebook $i --output ../results/$i


Did this answer your question?