Home  >  Article  >  Backend Development  >  Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)

Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)

Python当打之年
Python当打之年forward
2023-08-10 15:11:45918browse

This issue is the second issue of the Jupyter Notebook practical plug-in series. I will introduce to you another 5 very practical extension plug-ins. I hope it will be helpful to you.
##Tool installation

Direct pip Installation:
pip install jupyter_contrib_nbextensions && jupyter contrib nbextension install
Execute the above statement, restart jupyter notebook, if the following options appear, the installation is successful.
Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)
Open the Nbextensions tab to view jupyter notebook Currently supported plug-ins:
Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)

##1 . Toggle all line numbers

##Display all line numbers

Add toolbar button and hotkey to toggle row numbers for all cells:

Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)

## Tips: can also be passed L Shortcut keys directly operate .


##2. Collapsible headings

Title folding

This plugin allows us to

By titleCollapse the relevant content:

Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)

##3. Hide input

# Hide code
Hide the input of the selected code cell:

Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)


4. 输出多个变量

加载下面两行代码即可(非插件):
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
效果
Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)

5. Variable Inspector

变量检查器
变量检查器扩展收集所有已定义的变量,并在浮动窗口中显示它们。扩展可以拖动,可以调整大小,也可以折叠:

Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2)

未完待续..

The above is the detailed content of Wall crack recommended! Several Jupyter Notebook super practical plug-ins (2). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:Python当打之年. If there is any infringement, please contact admin@php.cn delete