!pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master
!pip install jupyter_nbextensions_configurator
!jupyter contrib nbextension install --user
!jupyter nbextensions_configurator enable --user
- 一个好用的扩展库:
pip install -U jupyter_contrib_nbextensions
或者conda install -c conda-forge jupyter_contrib_nbextensions
(推荐) - 关联Jupyter Notebook和conda的环境和包——“nb_conda”☆ (可以在Conda类目下对conda环境和包进行一系列操作):
conda install nb_conda
- Use Jupyter Notebooks in Azure Machine Learning Workbench
下面是在 Notebook 中的操作
- 加载指定网页源代码:
%load URL
- 加载本地Python文件:
%load Python文件的绝对路径
- 直接运行本地Python文件:
%run Python文件的绝对路径
或!python Python文件的绝对路径