jupyter 一键快捷启动方法研究

1.效果


首先打开dat 文件,同意赋予管理员

输入序号1

成功启动

2.Bat代码


bash 复制代码
%1 mshta vbscript:CreateObject("Shell.Application").ShellExecute("cmd.exe","/c %~s0 ::","","runas",1)(window.close)&&exit
@echo off
color 3e
goto menu

:menu
ECHO. 1(jupyter notebook)    2(jupyter lab)
ECHO.
echo.input num:
set /p ID=
if "%id%"=="1" goto cmd1

if "%id%"=="2" goto cmd2

:cmd1
jupyter notebook
exit

:cmd2
jupyter lab
exit

保存,把文件命名为:jupyter.bat 就可以了

相关推荐
悟空爬虫1 小时前
UV实战教程,我啥要从Anaconda切换到uv来管理包?
python
dev派2 小时前
AI Agent 系统中的常用 Workflow 模式(1)
python·langchain
明月_清风4 小时前
从“能用”到“专业”:构建生产级装饰器与三层逻辑拆解
后端·python
曲幽13 小时前
数据库实战:FastAPI + SQLAlchemy 2.0 + Alembic 从零搭建,踩坑实录
python·fastapi·web·sqlalchemy·db·asyncio·alembic
用户83562907805118 小时前
Python 实现 PowerPoint 形状动画设置
后端·python
ponponon19 小时前
时代的眼泪,nameko 和 eventlet 停止维护后的项目自救,升级和替代之路
python
Flittly19 小时前
【从零手写 ClaudeCode:learn-claude-code 项目实战笔记】(5)Skills (技能加载)
python·agent
敏编程19 小时前
一天一个Python库:pyarrow - 大规模数据处理的利器
python
Flittly21 小时前
【从零手写 ClaudeCode:learn-claude-code 项目实战笔记】(4)Subagents (子智能体)
python·agent
明月_清风1 天前
Python 装饰器前传:如果不懂“闭包”,你只是在复刻代码
后端·python