Coursera · Intermediate
No one has rated this course yet.
Jupyter Notebooks are aÂthird-party toolOpens in a new tab that some Coursera courses use for programming assignments.You can revert your code or get a fresh copy of your Jupyter Notebook mid-assignment. By default, Coursera persistently stores your work within each notebook.To keep your old work and also get a fresh copy of the initial Jupyter Notebook, clickÂFile, thenÂMake a copy.We recommend keeping a naming convention such as “Assignment 1 - Initial” or “Copy” to keep your notebook environment organized. You can also download this file locally.Refresh your notebookRename your existing Jupyter Notebook within the individual notebook viewIn the notebook view, add “?forceRefresh=true” to the end of your notebook URLReload the screenYou will be directed to your home Learner Workspace where you’ll see both old and new Notebook files.Your Notebook lesson item will now launch to the fresh notebook.Find missing workIf your Jupyter Notebook files have disappeared, it means the course staff published a new version of a given notebook to fix problems or make improvements. Your work is still saved under the original name of the previous version of the notebook.To recover your work:Find your current notebook version by checking the top of the notebook window for the titleIn your Notebook view, click the Coursera logoFind and click the name of your previous fileUnsaved work"Kernels" are the execution engines behind the Jupyter Notebook UI. As kernels time out after 90 minutes of notebook activity, be sure to save your notebooks frequently to prevent losing any work. If the kernel times out before the save, you may lose the work in your current session.How to tell if your kernel has timed out:Error messages such as "Method Not Allowed" appear in the toolbar area.The last save or auto-checkpoint time shown in the title of the notebook window has not updated recentlyYour cells are not running or computing when you “Shift + Enter”To restart your kernel:Save your notebook locally to store your current progressIn the notebook toolbar, clickÂKernel, thenÂRestartTry testing your kernel by running a print statement in one of your notebook cells. If this is successful, you can continue to save and proceed with your work.If your notebook kernel is still timed out, try closing your browser and relaunching the notebook. When the notebook reopens, you will need to do "Cell -> Run All" or "Cell -> Run All Above" to regenerate the execution state.
Taught by Dr Kevin Webster