Jupyter Notebook 小技巧集合
程序员文章站
2022-05-25 12:52:59
...
Jupyter小技巧集合
查看本地变量
%whos
Variable Type Data/Info
--------------------------------------------------------
np module <module 'numpy' from '/ho<...>kages/numpy/__init__.py'>
os module <module 'os' from '/home/<...>da3/lib/python3.6/os.py'>
pd module <module 'pandas' from '/h<...>ages/pandas/__init__.py'>
plt module <module 'matplotlib.pyplo<...>es/matplotlib/pyplot.py'>
re module <module 're' from '/home/<...>da3/lib/python3.6/re.py'>
time module <module 'time' (built-in)>
unittest module <module 'unittest' from '<...>.6/unittest/__init__.py'>
url str http://data.house.163.com<...>districtname=全市#stoppoint
webdriver module <module 'selenium.webdriv<...>m/webdriver/__init__.py'>
x ndarray 8: 8 elems, type `int64`, 64 bytes
y list n=57
重新加载模块
有时不小心把模块中的变量给赋值了,就需要重新加载
import importlib
importlib.reload(plt)
后台运行jupyter notebook
有时不希望关闭shell时一同关闭jupyter notebook,则用下面命令打开
nohup jupyter notebook &
上一篇: Spring3.x 注解配置定时任务详解