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

相关推荐
伊织code29 分钟前
LaTeX OCR - 数学公式识别系统
python·ai·ocr·latex·数学公式识别
声声codeGrandMaster4 小时前
Django之验证码功能
数据库·后端·python·django
佩奇的技术笔记7 小时前
Python入门手册:Python简介,什么是Python
开发语言·python
winfredzhang7 小时前
打造高效数据处理利器:用Python实现Excel文件智能合并工具
python·excel·合并·排序·xlsx
神秘敲码人7 小时前
Django基础(一)MVT 模式与 Django 框架
笔记·python·django
Y3174297 小时前
Python Day27 学习
python·学习·机器学习
漫谈网络8 小时前
Python 包管理工具 uv
开发语言·python·uv
纪伊路上盛名在8 小时前
leetcode字符串篇【公共前缀】:14-最长公共前缀
python·算法·leetcode
秃头小白菜8 小时前
Python之三大基本库——Matplotlib
开发语言·python·matplotlib
小胡说人工智能8 小时前
深度剖析:Dify+Sanic+Vue+ECharts 搭建 Text2SQL 项目 sanic-web 的 Debug 实战
人工智能·python·llm·text2sql·dify·vllm·ollama