浏览器远程编写python代码--jupyter web server
2024-09-05 01:09:29
公司分配了开发机,偶尔需要写一些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:端口
最新文章
- html页面的CSS、DIV命名规则
- atitit.提升开发效率---动态语言总结
- Python——目录操作
- java 8-6 抽象的练习
- php的字符串处理
- POJ2284 That Nice Euler Circuit (欧拉公式)(计算几何 线段相交问题)
- 函数xdes_get_offset
- 演练2-1:创建MVC默认项目
- Flappy bird源代码(略吊)
- 动态调用WCF
- php正则表达式(持续更新)
- c++学习笔记---03---从一个小程序说起2
- effective java学习笔记之不可实例化的类
- Building an MFC project for a non-Unicode character set is deprecated
- Python中的栈溢出及解决办法
- 通过LRU实现通用高效的超时连接探测
- 此博客不再更新和分享UiPath文章
- TCP简单回射程序
- redis----------windows下安装redis以及PHP的redis扩展
- monit安装配置
热门文章
- 性能测试工具Jmeter你所不知道的内幕
- Leetcode——回溯法常考算法整理
- [Intervention] Ignored attempt to cancel a touchmove event with cancelable=false, for example because scrolling is in progress and cannot be interrupted
- 磐创AI GPU租用平台上线,1小时不到1块钱
- 编译原理:DFA最小化,语法分析初步
- SpringCloud服务的注册发现--------Eureka自我保护机制
- iOS 静态:动态 Pod
- 模块 shutil_zipfile_tarfile压缩解压
- 利用data文件恢复MySQL数据库
- STM32F103ZET6 PWM输出