【jupyter】文件路径的更改

使用过 jupyter notebook 环境的同行, 都体会过随机生成 .html 静态网页的过程, 虽然文档较小, 但是不堪反复使用积少成多。本文基于windows系统。

找到 runtime 目录

一般 jupyter 默认 runtime 在下述格式目录中

C:\Users\用户名\AppData\Roaming\jupyter\runtime

复制一套 .html, .json 文件 (注意编号一致) 到期望的目录 "D://path/to/your/custom/" 。

cmd 环境下的python

建立 .bat 文件

cmd 复制代码
@echo off
start "Jupyter Server" cmd /k jupyter notebook
start "" "file:///D:/path/to/your/custom/htmlfile.html" 

双击运行 .bat 文件

conda 环境下的 python

建立 .bat 文件

cmd 复制代码
@echo off
call D:\path\miniconda3\Scripts\activate.bat
start "Jupyter Server" cmd /k jupyter notebook
start "" "file:///D:/path/to/your/custom/htmlfile.html"

双击运行 .bat 文件

相关推荐
Billy_Zuo3 分钟前
Android Studio 打aar包
android·ide·android studio
isxhyeah4 分钟前
python 数据结构 排序算法
数据结构·python·排序算法
喵手9 分钟前
Python爬虫高阶:用 Playwright “监听” Figma 社区热门插件数据!
爬虫·python·爬虫实战·figma·playwright·零基础python爬虫教学·社区热门插件数据采集
MoRanzhi120310 分钟前
Pillow 图像滤波、卷积与边缘处理
图像处理·python·计算机视觉·pillow·卷积·边缘检测·图像滤波
怪侠_岭南一只猿10 分钟前
爬虫学习阶段三:动态网页爬取(完整学习文档)
爬虫·python·学习
南 阳12 分钟前
Python从入门到精通day48
开发语言·python
虎大猫猫13 分钟前
JupyterLab的安装与使用完全指南
ide·python·jupyter
web3.088899918 分钟前
如何确保1688商品数据API接口的安全性
python
<-->19 分钟前
SGLang 相比 vLLM 的主要优势
人工智能·pytorch·python·transformer