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 就可以了

相关推荐
m0_560396475 分钟前
用Python创建一个Discord聊天机器人
jvm·数据库·python
m0_569881476 分钟前
使用Flask快速搭建轻量级Web应用
jvm·数据库·python
2401_873204656 分钟前
用Pandas处理时间序列数据(Time Series)
jvm·数据库·python
2301_776508727 分钟前
定时任务专家:Python Schedule库使用指南
jvm·数据库·python
2301_7638919512 分钟前
使用Python控制Arduino或树莓派
jvm·数据库·python
2401_8747325319 分钟前
实战:用Python分析某电商销售数据
jvm·数据库·python
全栈凯哥19 分钟前
26.Python os.path 完全指南
python
2301_7938046929 分钟前
Python内存管理机制:垃圾回收与引用计数
jvm·数据库·python
(@近墨清思%)30 分钟前
使用PyQt5创建现代化的桌面应用程序
jvm·数据库·python
2301_7957417930 分钟前
在构建企业级文生视频存储架构时,RustFS相比传统存储方案有哪些独特优势?
开发语言·python·pygame