赞
踩
pip3 install --upgrade pip
更新你的pip
pip3 install notebook -i https://pypi.tuna.tsinghua.edu.cn/simple
jupyter notebook
jupyter notebook --generate-config
会在家目录.jupyter中生成配置文件
jupyter notebook --port 9999
jupyter notebook notebook.ipynb
修改jupyter_notebook_config.py
文件
将c.NotebookApp.ip='localhost
改为c.NotebookApp.ip='0.0.0.0'
在防火墙允许8888端口的情况下,你可以通过局域网去访问
c.NotebookApp.open_browser = False
根据说明,我们需要执行以上代码获取其加密的值,然后将其填入即可
使用screen即可
如果没有安装命令
sudo apt install screen
screen -S notebook
然后开启notebook
jupyter notebook
然后关闭窗口就行了
pip3 install jupyter_contrib_nbextensions
关闭notebook后
jupyter contrib nbextension install --user --skip-running-check
启动 Jupyter Notebook,勾选设置
这个时候会报错
TypeError: __init__() got an unexpected keyword argument 'column'
参考Jupyter按tab键无法补全,而且报错TypeError: init() got an unexpected keyword argument ‘column‘的解决办法
pip3 install jedi==0.17 -i https://mirror.edu.cn/pypi/simple
然后就可以愉快补全了
首先要在jupyter服务器的机子上修改token让vscode能够连接上内核
vim ~/.jupyter/jupyter_notebook_config.py
其中密码填入你想填入的值
然后在vscode中下载python插件
然后按下ctrl+shift+p
进入命令查找,输入服务器
填入http://ip:port/?token=你填入的值即可
在python文件中使用符号#%%
即可开启一个框格
pip3 install nbconvert
python3 -c "import nbconvert
看一下是否可以导入D:\pandoc
jupyter nbconvert a.ipynb --to pdf --output a.pdf
sudo jupyter notebook --allow-root
sudo apt install Pyppeteer
然后在随便一个含有notebook的文件下执行
jupyter nbconvert --to webpdf --allow-chromium-download test.ipynb
这样你后面的notebook就都可以在网页上面进行转换了
jupyter更换主题(win)
pip3 install --upgrade jupyterthemes
jt -t oceans16 -T
pip install ipympl
嵌入
%matplotlib ipympl
或者
%matplotlib notebook
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。