Linux上部署Jupyter notebook

这篇具有很好参考价值的文章主要介绍了Linux上部署Jupyter notebook。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

安装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_nbextensions

jupyter-contrib-nbextension install --user

Linux上部署Jupyter notebook,linux,python,linux,jupyter,运维

后台运行

1、tmux new -s jupyter

2、jupyter notebook --ip=0.0.0.0 --port=9999 --allow-root

3、然后我们按住快捷键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文章来源地址https://www.toymoban.com/news/detail-857631.html

到了这里,关于Linux上部署Jupyter notebook的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • Python应用工具-Jupyter Notebook

    工具简介 Jupyter Notebook是 基于 网页的用于交互计算的 应用程序,以网页的形式打开,可以在网页页面中直接编写代码和运行代码,代码的运行结果也会直接在代码块下 显示,文档是保存为后缀名为 . ipynb 的 JSON 格式文件。 操作指令 安装: pip3 install jupyter 启动: jupyter not

    2024年02月12日
    浏览(42)
  • python pip安装jupyter notebook

    如果你想在 Python 环境中安装 Jupyter Notebook,可以使用 pip 命令来进行安装。以下是在命令行界面中安装 Jupyter Notebook 的步骤: 打开命令行界面(例如 Windows 的命令提示符或 macOS/Linux 的终端)。 运行以下命令来更新 pip 工具到最新版本: 运行以下命令来安装 Jupyter Notebook: 在

    2024年02月06日
    浏览(44)
  • 【python】jupyter notebook的快捷键

    Jupyter Notebook 提供了许多快捷键以方便操作。这些快捷键分为两类:命令模式快捷键和编辑模式快捷键。 命令模式快捷键 : 在命令模式下,细胞边框是蓝色的。这些快捷键主要用于操作单元格。 Enter :进入编辑模式 Shift + Enter :运行当前单元格并选中下一个单元格 Ctrl + E

    2024年02月13日
    浏览(46)
  • jupyter notebook 配置conda 虚拟环境python

    conda创建python环境 激活环境 在虚拟环境中安装ipykernel 添加虚拟环境进到 jupyter notebook 启动 jupyter notebook 参考链接: 使用Conda来配置Jupyter notebook的虚拟环境 https://www.cnblogs.com/tccjx/articles/16469642.html

    2024年01月17日
    浏览(45)
  • 在其他python环境中使用jupyter notebook

    使用python做AI开发,通常会使用annaconda来安装多个python编译环境来满足需要,在pycharm等IDE中切换python环境非常方便,但是有时候我们有需要用jupyter notebook这个非常好用的编译工具,首先它在浏览器中运行,而且能够保存运行记录,而且可以配图和注释,非常好用。 如何在j

    2024年02月11日
    浏览(48)
  • 使用Docker本地部署Jupyter Notebook并结合内网穿透实现远程访问

    本文主要介绍如何在Ubuntu系统中使用Docker本地部署Jupyter Notebook,并结合cpolar内网穿透工具实现任意浏览器公网远程访问Jupyter登录界面。 Jupyter Notebook是一个交互式笔记本,支持运行40多种编程语言。可以使用它来创建和共享程序文档,支持实时代码,数学方程,可视化和 ma

    2024年02月02日
    浏览(40)
  • 如何在 jupyter notebook 环境中安装 Python 包?

    在jupyter notebook中安装Python包,可以通过以下两种方式进行。 使用 !pip 命令 在jupyter notebook的代码框中输入以下命令,即可使用pip工具安装Python包: 其中,\\\"包名\\\"是您要安装的Python包的名称。当您运行此命令时,pip会自动从互联网上下载并安装该包及其依赖项。 注意,前面的

    2024年02月16日
    浏览(40)
  • 如何使用Docker本地部署Jupyter Notebook并结合内网穿透实现远程访问

    本文主要是Linux下通过使用Docker本地部署Jupyter Notebook并结合内网穿透实现远程访问的文章,如果有什么需要改进的地方还请大佬指出⛺️ 🎬作者简介:大家好,我是青衿🥇 ☁️博客首页:CSDN主页放风讲故事 🌄每日一句:努力一点,优秀一点 文章目录 本文主要介绍如何在

    2024年01月25日
    浏览(46)
  • 《Python数据分析技术栈》第01章 02 Jupyter入门(Getting started with Jupyter notebooks)

    《Python数据分析技术栈》第01章 02 Jupyter入门(Getting started with Jupyter notebooks) Before we discuss the essentials of Jupyter notebooks, let us discuss what an integrated development environment (or IDE) is. An IDE brings together the various activities involved in programming, like including writing and editing code, debugging, and crea

    2024年01月20日
    浏览(31)
  • Jupyter notebook没有创建python3的选项解决

    jupyter提示找不到kernel,因此为其增加内核 首先安装ipkernel包: 针对当前用户安装ipkernel: 重新运行jupyter notebook,python3的选项就出现啦!

    2024年02月11日
    浏览(28)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包