首页 > 其他分享 >jupyter

jupyter

时间:2023-12-16 14:56:59浏览次数:23  
标签:ServerApp 8080 192.168 lab jupyter config

1、安装:

pip3 install jupyter

2、配置:

生成配置文件:jupyter-lab --generate-config

查看配置文件路径:jupyter --config-dir

查看配置:jupyter-lab --show-config

修改相关配置:

c.ServerApp.ip = '192.168.1.2'  #服务器侦听地址
c.ServerApp.port = 8080  #侦听端口,默认8888
c.ServerApp.allow_remote_access = True  #允许远程访问
c.LabApp.open_browser = False  #启动后是否打开浏览器

3、启动:

直接启动:jupyter-lab

4、访问:

启动后会提示:http://192.168.1.1:8080/lab?token=3c14f4e43b446b56723ab29b839723f654f0ebceb846dd96

  • 在浏览器中访问上述地址可直接使用jupyter。
  • 在浏览器中访问http://192.168.1.1:8080/lab,在提示页面输入上述token,可新建密码,以后通过此密码使用jupyter。

标签:ServerApp,8080,192.168,lab,jupyter,config
From: https://www.cnblogs.com/badwood316/p/17904824.html

相关文章

  • jupyter notebook代码补全扩展安装遇到 Jupyter command `jupyter-contrib` not found
    Jupytercommandjupyter-contribnotfound.解决方案——新的安装方式。方法1:pip方式1.先使用以下命令,卸载旧版本的jupyter_contrib_nbextensions和upyter_nbextensions_configurator:分别用cmd命令,卸载之前的安装pipuninstalljupyter_contrib_nbextensionspipuninsta......
  • hackthebox jupyter medium
    BREIFLY.thisboxisquitehardforbeginner.thewalkthroughisfollowing:1.nmapscanopenportsdetailanddiscoverthisboxopen22and80portbutonlygivethedomain http://jupiter.htb FUZZTESTING:atthetimewecanFUZZthesubdomainofthisdom......
  • Jupyter Notebook 使用与安装
    简介JupyterNotebook就是以网页的形式打开,可以在网页页面中直接编写代码和运行代码,代码的运行结果也会直接在代码块下显示的程序。如在编程过程中需要编写说明文档,可在同一个页面中直接编写,便于作及时的说明和解释。官网:https://jupyter-notebook.readthedocs.io/en/stable/not......
  • 设置jupyter中DataFrame的显示限制方式
    jupyter中显示的DataFrame过长时会自动换行(print()显示方式)或自动省略(单元格最后一行直接显示),在一些情况下看上去不是很方便,可调节显示参数如下:importpandasaspdpd.set_option('display.width',500)#设置整体宽度pd.set_option('display.height',500)#设置整体高......
  • Jupyter Notebook的使用
    什么是Jupyter NotebookJupyterNotebook是一个基于Web的交互式计算环境,支持多种编程语言,包括Python、R、Julia等。它的主要功能是将代码、文本、数学方程式、可视化和其他相关元素组合在一起,创建一个动态文档,用于数据分析、机器学习、科学计算和数据可视化等方面。JupyterN......
  • nginx jupyterWeb
    location/jupyterWeb/{add_headerX-Frame-OptionsSAMEORIGIN;add_headerAccess-Control-Allow-Origin*;add_headerAccess-Control-Allow-Methods'GET,POST,OPTIONS';add_headerAccess-Control-Allow-Headers'DNT,X-Mx-ReqToken,Ke......
  • 机器学习环境安装和使用之02Jupyter Notebook的使⽤
    JupyterNotebook简介jupyterNotebook(前身是IPythonNotebook)是一个开源的交互式计算和数据可视化工具(web程序),支持多种编程语言,最常用的是Python。它提供了一个基于Web的界面,用户可以在浏览器中创建和共享文档,这些文档包含实时代码、方程、可视化和文本。名字源⾃Julia、P......
  • 用Jupyter Notebook自带的方法转换成PDF
      python版本3.7~3.9安装nbconvert1pipinstallnbconvert 方式一:需要安装Chromium也有两种方法:1.需要安装Chocolatey(会自动安装Chromium浏览器)1Set-ExecutionPolicyBypass-ScopeProcess-Force;[System.Net.ServicePointManager]::SecurityProtocol=[......
  • jupyter notebook 设置主题
    打开cmd窗口命令行:1pipinstalljupyterthemes查看有哪些主题可用1jt-l -t:设置主题-f:设置代码字体-fs:设置代码字体大小-cellw:设置单元格宽度-ofs:输出结果的字体大小-dfs:pandas的DF字体大小-T:设置工具栏可见-N:设置.ipynb的名字可见以下是我的主题设置参数 1......
  • Jupyter Notebook报错'500 : Internal Server Error'的解决方法
    问题根因Jupyter相关的软件包版本匹配存在问题,或者历史上安装过Jupyter相关的配套软件但是有残留。大部分网上的博客都是推荐用pip重装jupyter或者nbconvert,亲测无法解决该问题。解决方案按照指定的匹配版本,全部重装ipython、jupyter和notebook等软件,目前来说,另一篇博客中推荐......