博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Jupyter Notebook配置
阅读量:3721 次
发布时间:2019-05-22

本文共 1278 字,大约阅读时间需要 4 分钟。

自动补全

  • 开启自动补全

ipython profile create

gedit ~/.iphton/ptofile_default/ipython_config.py

修改如下三行:

## Activate greedy completion PENDING DEPRECTION. this is now mostly taken care#  of with Jedi.##  This will enable completion on elements of lists, results of function calls,#  etc., but can be unsafe because the code is actually evaluated on TAB.c.Completer.greedy = True## Experimental: restrict time (in milliseconds) during which Jedi can compute#  types. Set to 0 to stop computing types. Non-zero value lower than 100ms may#  hurt performance by preventing jedi to build its cache.c.Completer.jedi_compute_type_timeout = 400## Experimental: Use Jedi to generate autocompletions. Off by default.c.Completer.use_jedi = True

安装免tab插件:

pip install jupyter_nbextensions_configurator

jupyter nbextensions_configurator enable --user

如果jupyter主页中的Nbextensions标签页中没有出现Hinterland选项则:

jupyter contrib nbextension install --user --skip-running-check

再起重启jupyter后勾选Hinterland

远程

配置密码:

jupyter notebook password

修改配置文件:

jupyter notebook --generate-config

gedit ~/.jupyter/jupyter_notebook_config.py

修改下面三项

c.NotebookApp.ip = '*'    #允许所有ip访问  补充:报错 No address associated with hostname可设置为:'0.0.0.0'c.NotebookApp.open_browser = False    #服务器不打开浏览器c.NotebookApp.port = 8888             #端口为8888

转载地址:http://ybbnn.baihongyu.com/

你可能感兴趣的文章
Qt Http通信: TLS initialization failed 解决方法
查看>>
QT QMessageBox 弹出两次的可能原因
查看>>
Java 无法运行Java虚拟机 | cmd下输入java -version报错 .Error: Could not create the Java Virtual Machine.
查看>>
在C++里调用Java可执行jar包
查看>>
QT 设置QLabel文字竖直居中
查看>>
Java中调用ImageJ,与直接使用ImageJ软件处理所得图片黑白颠倒的问题
查看>>
解决使用ployfit拟合曲线得到折线图(不够光滑)的问题
查看>>
ImageDataGenerator读取的数据集转Numpy array
查看>>
Python查看函数源码
查看>>
保存Shap生成的神经网络解释图(shap.image_plot)
查看>>
iOS底层代码探索003-类的底层探索
查看>>
iOS底层代码探索003-类的底层探索后续
查看>>
关于Java中JVM,JRE,JDK之间的关系
查看>>
数据类型
查看>>
使用 IDEA编辑器 创建 serlvet 项目的完整流程
查看>>
配置servlet的xml时报错:URL is not registered(Settings | Languages & Frameworks | Schemas aand DTDs)
查看>>
maven插件打包项目jar包时出错
查看>>
汇编语言 内部中断
查看>>
汇编语言 标志位
查看>>
汇编语言 ADC指令和SBB指令
查看>>