服务器完整搭建jupyter 科学环境服务

栏目: Python · 发布时间: 7年前

内容简介:目标:步骤:1.设置python 环境 ,建议 python 3.6.* ,建议使用conda 的虚拟环境,那就按照anaconda

目标:

  1. 整个公司同事可以访问到centos 7 服务器上【存在跳板机,需要做内网转发域名】的jupyter,提供对内网的所有机器的http 访问支持

    2.在jupyter 可以使用服务器环境下的 python 环境【可以是 conda 或者pyenv 环境或者真实python】

    3.jupyter 提供 python R scala spark golang 运行环境

步骤:

1.设置python 环境 ,建议 python 3.6.* ,建议使用conda 的虚拟环境,那就按照anaconda

yum install zlib-devel openssl-devel sqlite-devel
conda activate condaEnv

2.安装jupyter

pip3 install jupyter ,需要注意的是 提前把【zlib sqilite openssl】整好

3.配置 jupyter 密码登录模式 配置jupyter工作目录 ,ip 和port,后台启动,我是 root 用户启动,当然你使用任意用户都可以

mkdir -p /data/jupyter_doc
jupyter notebook --generate-config
jupyter notebook password ##回车后输入两次密码
ip a # ifconfig  #查看本机ip  
 nohup  jupyter notebook  --ip=172.17.39.134 --port=8888  --allow-root --notebook-dir=/data/jupyter_doc &  ## --ip=0.0.0.0 好像也可以的, port 可以随意,如果没有占用,就使用默认的就可以了

4.配置内网转发域名ip,内网 web http环境可以登录访问,需要对特定端口打开出入

这一项 建议使用Nginx 或者 slb转发 ,建议使用https 安全协议

5.centos 安装R 语言解释器,重启jupyter 可以支持R

conda install -c r r-essentials

https://blog.csdn.net/jacke121/article/details/75378645

6.jupyter安装 scala 解释器 和spark 解释器

https://blog.csdn.net/qq_30901367/article/details/73296887

7.jupyter 安装golang 解释器

https://studygolang.com/articles/13235?fr=sidebar
yum install golang
https://github.com/yunabe/lgo
git clone https://github.com/yunabe/lgo.git
 jupyter console --kernel lgo

8 如果需要 可以安装jupyter插件库

## 安装[jupyterlab](https://github.com/jupyterlab/jupyterlab)

目前这个项目还在测试过程中,它的目的是增强jupyter的编辑能力,使jupyter如IDE一般强大。
安装:`conda install -c conda-forge jupyterlab`
运行:`jupyter lab`

以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。

Operating System Algorithms

Operating System Algorithms

Nathan Adams、Elisha Chirchir / CreateSpace Independent Publishing Platform / 2017-4-21 / USD 39.15

Operating System Algorithms will walk you through in depth examples of algorithms that you would find in an operating system. Selected algorithms include process and disk scheduling.一起来看看 《Operating System Algorithms》 这本书的介绍吧!

JS 压缩/解压工具
JS 压缩/解压工具

在线压缩/解压 JS 代码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换