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

相关推荐
红宝村村长6 分钟前
torch.autograd.Function.apply()
开发语言·python
花间相见8 分钟前
【LeetCode01】—— 无重复字符的最长子串:滑动窗口经典题详解
python·算法·leetcode
何以解忧,唯有..14 分钟前
Python 中的继承机制:从基础到高级用法详解
java·开发语言·python
try2find38 分钟前
agent环境安装spacy
python·智能体
ellenwan202642 分钟前
期货程序化开平标志错了总拒单:天勤 last_msg 排查思路
python
装不满的克莱因瓶1 小时前
自动微分的原理:计算图与前向传播
人工智能·pytorch·python·数学·ai·微积分·计算图
Ycocol1 小时前
AS同一个目录下的类导入导入其他类爆红无法跳转但是可以编译
android·ide·android studio
console.log('npc')1 小时前
将 Figma 接入 Codex MCP:从 `/plugins` 到本地插件配置的完整教程
前端·人工智能·python·figma·code·codex·mcp
资深流水灯工程师1 小时前
PySide6 QMainWindow与QWidget秒解
开发语言·python
popcorn_min1 小时前
California Housing 可复现回归实验:随机森林预测加州房价
python