Store Magic - Restore variables at startup of Jupyter Notebook

preview_player
Показать описание
When you run computationally intensive code in your Jupyter Notebook, it unnecessarily uses up resources, when you re-run it every time, in order to run subsequent code. Therefore, it is recommended to save intermediary results. Store Magic is an ipython feature to restore variables at startup without storing to file.

Note for the windows users:
When using the WSL terminal on a windows machine, your .ipython directory is most likely not located in your Linux home directory, but in your windows home directory. This results in the following change of paths:
Instead of using:

use the following command:

Where USERNAME is the username of your windows user profile. Note: If your username has a blank space in it, i.e. Darth Vader, your path has to be in quotation marks, i.e.:

alternatively, you can use the CMD command line, which when promoted will automatically be in your windows home directory. Then use the following command:
Рекомендации по теме