服务器上配置jupyter
来源:互联网 发布:vb for循环嵌套if 编辑:程序博客网 时间:2024/04/28 10:21
centos配置jupyter
- 第一步安装anaconda:首先在anaconda的官网
下载anaconda安装:
输入:bash Anaconda2-5.0.1-Linux-x86_64.sh输入:ENTER输入:3个 yes
- 如果完成anaconda的安装,出现了jupyter和conda不是内部命令,是路径没有更新的原因,输入
source ~/.bashrc
- 尝试启动jupyter,输入
jupyter notebook
- 生成Jupyter的配置文件,使用命令
jupyter notebook --generate-config
自动生成配置文件一定要记住路径
- 自动生成密码
在服务器上输入python,进入anaconda的编辑器中,输入下面的代码from notebook.auth import passwdpasswd()就会提示输入两次密码# 输出的是一个秘钥`sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'`
打开配置文件的路径中的配置文件
.jupyter/jupyter_notebook_config.py
,修改下面的设置c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'c.NotebookApp.ip = '*'c.NotebookApp.open_browser = False# It is a good idea to set a known, fixed port for server accessc.NotebookApp.port = 9999# 自己项目的路径c.NotebookApp.notebook_dir = u''
- 持久化运行jupyter
在服务器上输入:nohup jupyter notebook &
如果在浏览器无法访问可以生成ssl证书
因为Jupyter必须要用https进行登录,所以需要生成ssl证书。输入命令:openssl req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mykey.key -out mycert.pem#上面的命令可以自动生成证书,但是这个证书是不安全的,只能在测试过程中使用。更改Jupyter的配置文件中的相关字段。c.NotebookApp.certfile = u'/absolute/path/to/your/certificate/mycert.pem'c.NotebookApp.keyfile = u'/absolute/path/to/your/certificate/mykey.key'
- 完成了哦,这样就可通过ip:port访问你设置的
c.NotebookApp.notebook_dir
中的文件,并实现编程和运行了!!!!
阅读全文
0 0
- 服务器上配置jupyter
- 在服务器上配置jupyter, 远程登录
- 在服务器上配置jupyter notebook
- Jupyter Notebook 服务器配置
- 配置远程服务器jupyter
- Jupyter Notebook远程服务器配置
- Jupyter安装及服务器配置
- Linux上配置Jupyter Notebook远程访问
- jupyter notebook 架设在服务器 在windows 本地用浏览器的访问服务器上的jupyter
- jupyter notebook 架设在服务器 本地用浏览器访问服务器上的jupyter
- 实验教程1:如何在阿里云服务器ECS上安装anaconda,配置远程访问的jupyter notebook
- 在云服务器上搭建jupyter-notebook环境
- 在centos7服务器上安装anaconda和jupyter notebook
- mac 下在服务器上运行 Jupyter notebook
- 本地远程访问Ubuntu16.04.3服务器上的Jupyter notebook
- Ipython Notebook升级版Jupyter Notebook远程服务器配置
- 配置远程Linux云服务器+可视化工作环境+jupyter notebook
- Ubuntu上安装配置Tensorflow及Jupyter详解(20170919)
- java安全管理器
- vuejs如何从后端请求数据
- 数据结构实验之排序一:一趟快排
- 数据结构_复习2
- git警告warning: CRLF will be replaced by LF in iris/js/list.js.
- 服务器上配置jupyter
- 微信实习面试感想
- Elasticsearch简介&基本使用
- 接口自动化-postman集成Jenkins
- Ubuntu 14.04下搭建Web服务器(MySQL+PHP+Apache) 教程
- python双下划线含义、MethodType把函数变为方法以及类继承
- 关于原谅
- 【python】基本数据类型
- 64位windows下Xgboost安装血与泪的总结