jupyter notebook 小技巧

!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文件的绝对路径
posted @ 2018-08-28 13:49  xinet  阅读(374)  评论(0编辑  收藏  举报