Linux上部署Jupyter notebook

news/2024/9/24 23:24:05/

jupyter_notebook_0">安装jupyter notebook

pip install notebook 
#或者
conda install notebook

配置

jupyter notebook --generate-config
## The IP address the notebook server will listen on.
#  Default: 'localhost'
# 设置可以访问的ip, 默认是localhost, 将其改为 '*'
c.NotebookApp.ip = '*'## The directory to use for notebooks and kernels.
#  Default: ''
# 默认打开目录
c.NotebookApp.notebook_dir = '/home/data123share66/python'## Whether to open in a browser after starting.
#                          The specific browser used is platform dependent and
#                          determined by the python standard library `webbrowser`
#                          module, unless it is overridden using the --browser
#                          (NotebookApp.browser) configuration option.
#  Default: True
# Jupyter notebook启动后是否打开浏览器, 设为 False 即可
c.NotebookApp.open_browser = False## Hashed password to use for web authentication.
#  
#                        To generate, type in a python/IPython shell:
#  
#                          from notebook.auth import passwd; passwd()
#  
#                        The string should be of the form type:salt:hashed-
#  password.
#  Default: ''
c.NotebookApp.password = 'argon2:$argon2id$v=19$m=10240,t=10,p=8$Ny6WDdoLBm88cUMyOqgNqg$s3WObP81eU51RT2j8D8DULPM1OAPOnzYfODW8olB0xw'

密码设置

1、运行python
2、命令:from notebook.auth import passwd; passwd()
3、copy 密码

扩展插件

pip install jupyter_contrib_nbextensionsjupyter-contrib-nbextension install --user

在这里插入图片描述

后台运行

1、tmux new -s jupyter2jupyter notebook --ip=0.0.0.0 --port=9999 --allow-root3、然后我们按住快捷键Ctrl+b,松开,再按一下d。我们就把这个会话放到了后台。4、返回窗口:tmux attach -t jupyter

使用

在浏览器输入服务器的IP地址:9999,小编这里是34.81.173.39:9999,访问

参考

https://blog.csdn.net/zhangtingduo/article/details/133945890
https://baijiahao.baidu.com/s?id=1759085502704856128&wfr=spider&for=pc


http://www.ppmy.cn/news/1435240.html

相关文章

Pandas 2.2 中文官方教程和指南(十七)

原文:pandas.pydata.org/docs/ 重复标签 原文:pandas.pydata.org/docs/user_guide/duplicates.html Index对象不需要是唯一的;你可以有重复的行或列标签。这一点可能一开始会有点困惑。如果你熟悉 SQL,你会知道行标签类似于表上的…

MP2110A Anritsu 安立 采样示波器 眼图设备 简述

MP2110A是一款集成了误码率测试仪(BERT)和采样示波器的一体化测量仪器,主要用于光学模块的误码率(BER)测量、眼图分析等评估操作。它支持从10G到800G的光学模块制造过程中的检测分91522。MP2110A内置4通道采样示波器&a…

基于STM32和阿里云的智能台灯(STM32+ESP8266+MQTT+阿里云+语音模块)

一、主要完成功能 1、冷光模式和暖光模式两种灯光 主要支持冷光和暖光模式两种,可以通过语音模块或手机app远程切换冷暖光 2、自动模式和手动模式 主要支持手动模式和自动两种模式(app或语音助手切换) (1)自动模式:根据环境光照…

Flutter-自定义画板

效果 功能 支持绘制线、圆、矩形,支持拓展支持撤回上一步支持清空画板支持自定义画笔颜色,宽度 实现 定义绘制类型 /// 类型 enum ShapeType {//线line,//圆circle,//矩形rectangle,//拓展 }定义绘制抽象类 import dart:ui;/// 绘制抽象类 abstract…

RustGUI学习(iced)之小部件(一):如何使用按钮和文本标签部件

前言 本专栏是学习Rust的GUI库iced的合集,将介绍iced涉及的各个小部件分别介绍,最后会汇总为一个总的程序。 iced是RustGUI中比较强大的一个,目前处于发展中(即版本可能会改变),本专栏基于版本0.12.1. 概述…

2024年宝鸡市国家级、省级、市级科技企业孵化器申报奖励补贴标准及申报条件

一、宝鸡市各区县科技企业孵化器申报奖励 (wotao,专注项目申报、专利商标版权DL12年!zi询看主页) 宝鸡市:对新认定的国家、省、市级科技企业孵化器,建成并投入良性运行后,分别给予30万元、20万…

pytorch-解决过拟合之regularization

目录 1.解决过拟合的方法2. regularization2. regularization分类3. pytorch L2 regularization4. 自实现L1 regularization5. 完整代码 1.解决过拟合的方法 更多的数据降低模型复杂度 regularizationDropout数据处理早停止 2. regularization 以二分类的cross entropy为例&…

更新至2022年上市公司数字化转型数据合集(四份数据合集)

更新至2022年上市公司数字化转型数据合集(四份数据合集) 一、2000-2022年上市公司数字化转型数据(年报词频、文本统计) 二、2007-2022年上市公司数字化转型数据(年报和管理层讨论)(含原始数据…