Magic Commands¶
The default IPython magic commands are available in the Jupyter Notebook.
Additionally we define the following ones:
- %addpath path
Adds path to the list of paths to look for Python modules.
- %holoviews
Replaces current cell with a set of useful imports to use HoloViews.
- %install [-v] packagename
Installs (or updates if installed) packagename.
- %info_versions -p package1 package2 package3
Display the versions of the packages in the list.
- %list_packages
List names and versions of all installed packages.
- %tensorflow_version [version]
Display available TensorFlow versions. If the optional version is given then it is activated.
- %watermark
Prints date/time stamps and various system information. Options can be viewed by executing %watermark?
Other useful magic commands are (please see above for a full list):
- %pip
Run the pip package manager within the current kernel.
- %writefile [-a] filename
Write the content of the cell to a file. The file will be overwritten unless -a (append) is specified.