公司分配了开发机,偶尔需要写一些python自动化脚本。为了提高编写效率,可以开发机上起一个jupyter web server,然后在电脑chrome浏览器进行编辑。

以下步骤均在开发机上操作。

安装jupyter

pip install jupyter

生成配置

jupyter notebook --generate-config

生成sha密钥

需首选进入python命令行

>>> from notebook.auth import passwd
>>> passwd()
>>> Enter password:
>>> Verify password:
>>> 'sha1:5eb7241****************8e91d9ca9d53b'

编辑配置文件

vim ~/.jupyter/jupyter_notebook_config.py

配置ip等信息

c.NotebookApp.ip='0.0.0.0'
c.NotebookApp.password = u'sha1:5eb7241****************8e91d9ca9d53b'
c.NotebookApp.open_browser = False

启动服务

nohup jupyter notebook > jupyter.log 2>&1 &
  • 在日志文件里查看端口,默认为8888

查看本地ip

ifconfig

访问

在自己电脑的浏览器访问 ip:端口

最新文章

  1. html页面的CSS、DIV命名规则
  2. atitit.提升开发效率---动态语言总结
  3. Python——目录操作
  4. java 8-6 抽象的练习
  5. php的字符串处理
  6. POJ2284 That Nice Euler Circuit (欧拉公式)(计算几何 线段相交问题)
  7. 函数xdes_get_offset
  8. 演练2-1:创建MVC默认项目
  9. Flappy bird源代码(略吊)
  10. 动态调用WCF
  11. php正则表达式(持续更新)
  12. c++学习笔记---03---从一个小程序说起2
  13. effective java学习笔记之不可实例化的类
  14. Building an MFC project for a non-Unicode character set is deprecated
  15. Python中的栈溢出及解决办法
  16. 通过LRU实现通用高效的超时连接探测
  17. 此博客不再更新和分享UiPath文章
  18. TCP简单回射程序
  19. redis----------windows下安装redis以及PHP的redis扩展
  20. monit安装配置

热门文章

  1. 性能测试工具Jmeter你所不知道的内幕
  2. Leetcode——回溯法常考算法整理
  3. [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted
  4. 磐创AI GPU租用平台上线,1小时不到1块钱
  5. 编译原理:DFA最小化,语法分析初步
  6. SpringCloud服务的注册发现--------Eureka自我保护机制
  7. iOS 静态:动态 Pod
  8. 模块 shutil_zipfile_tarfile压缩解压
  9. 利用data文件恢复MySQL数据库
  10. STM32F103ZET6 PWM输出