当前位置:网站首页>Jupyterhub配置Go环境
Jupyterhub配置Go环境
2022-07-21 07:18:00 【yutao_517】
安装GO
wget https://studygolang.com/dl/golang/go1.17.6.linux-amd64.tar.gz
tar -zxvf go1.17.6.linux-amd64.tar.gz
useradd admin
mv go /usr/local
配置环境变量
echo 'export PATH=$PATH:/usr/local/go/bin'>>/etc/profile
echo 'export GOPATH=/home/go/go'>>/etc/profile
go version
配置Go代理
export GO111MODULE=on
export GOPROXY=https://goproxy.cn
查看jupyte内核
jupyter kernelspec list
gophernotes - 在 Jupyter 笔记本和交互中使用 Go
https://github.com/gopherdata/gophernotes
go install github.com/gopherdata/[email protected]
mkdir -p /usr/local/share/jupyter/kernels/gophernotes
cd /usr/local/share/jupyter/kernels/gophernotes
cp "$(go env GOPATH)"/pkg/mod/github.com/gopherdata/[email protected]/kernel/* "."
chmod +w ./kernel.json # in case copied kernel.json has no write permission
sed "s|gophernotes|$(go env GOPATH)/bin/gophernotes|" < kernel.json.in > kernel.json
要确认gophernotes二进制文件已安装在 GOPATH 中,请直接执行:
"$(go env GOPATH)"/bin/gophernotes
打开Jupyterhub
admin用户创建密码可以登录使用
登录admin用户
登录其他用户将存在权限问题,这是因为内核的目录在admin用户,其他用户无权限。
边栏推荐
- The classification of artificial neural network includes: the classification of artificial neural network includes
- 传输层协议解析——UDP和TCP
- 【集训DAY6】Dream【优先队列】【贪心】
- FreeRTOS -- a method to detect the usage of task stack
- lua环境配置
- Mysql04(行专列)
- Malloc and space Configurator
- [wechat applet] solve the problem that the code upload exceeds the size limit and the applet is subcontracted
- C managed and unmanaged resources
- 【MSP430G2553】图形化开发笔记(2) 系统时钟和低功耗模式
猜你喜欢
随机推荐
软件测试面试小技巧 | 如果你没收到offer我倒立洗头
Interrupt vector table in stm32
酪氨酸修饰肽核酸PNA|Tyr-PNA|Bz-Tyr-PNA|99Tcm—survivinmRNA反义肽核酸的使用方法
Niu Ke brushes question 01 - Kiki de duplication of integers and sorting (C language)
网络 IO 模型的演化过程
接口测试中,要验证和使用数据库吗
Framework - WindowManager (window management service) practice of WMS
FreeRTOS -- a method to detect the usage of task stack
怎么学自动化测试
铜牛机房项目的优势和劣势
Houdini building rigid body area influence breaking notes
Mysql06(序列)
罗丹明B标记肽核酸PNA|罗丹明B-PNA|生物素修饰肽核酸pna|生物素修饰pna肽核酸|规格信息
Steve Aoki's Avatar will come to the sandbox metauniverse!
UnityWebGl项目总结(未完)
[terminal _1]-xshell 5 the hottest terminal software!
Mysql05(视图)
LeetCode 1928. 规定时间内到达终点的最小花费
硬核Fiddler抓包工具大型攻略(完)Fiddler终极篇
vector的常见接口介绍