Jupyter Notebook笔记

隐藏代码code

# 手动点击隐藏1
from IPython.display import display_html
display_html("""""", raw=True)
# 手动点击隐藏2
from IPython.display import HTML

HTML('''
''')
# 自动隐藏
from IPython.display import display
from IPython.display import HTML
import IPython.core.display as di       # Example: di.display_html('

%s:

' % str, raw=True) # This line will hide code by default when the notebook is exported as HTML di.display_html('', raw=True) # This line will add a button to toggle visibility of code blocks, for use with the HTML export version di.display_html('''''', raw=True)

修改安装路径

  • cmd中输入jupyter notebook --generate-config,->输入"N"
  • 打开jupyter_notebook_config.py,将c.NotebookApp.notebook_dir = 'D:'

你可能感兴趣的:(Jupyter Notebook笔记)