【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 文件

相关推荐
knighthood200130 分钟前
vscode扩展中vscode版本号该如何填写?
ide·vscode·编辑器
Metaphor69237 分钟前
使用 Python 在 Excel 中查找并高亮显示
python·信息可视化·excel
曼岛_1 小时前
[安卓逆向]在Android Studio中编写SO文件并测试调用 (四)
android·ide·android studio
旦莫1 小时前
AI测试Agent的两种架构路径:谁做主控?
人工智能·python·架构·自动化·ai测试
January12071 小时前
IDEA 快捷键
java·ide·intellij-idea
搬石头的马农1 小时前
从零配置Claude自动修Bug:6步打造全自动开发流程
java·人工智能·python·bug·ai编程
暗夜猎手-大魔王1 小时前
转载--Hermes Agent 04 | Agent 主循环:一次对话背后发生了什么
人工智能·python·算法
Wonderful U1 小时前
基于Python+Django的在线题库与智能阅卷系统:从痛点分析到完整实现
开发语言·python·django
码语智行1 小时前
拦截器、接口限流、过滤器、防重发/幂等性功能说明
开发语言·网络·python
孟华苏2 小时前
怎么快速排查内存泄漏问题
java·开发语言·python