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

相关推荐
Eiceblue29 分钟前
Python 复制Excel 中的行、列、单元格
开发语言·python·excel
NLP工程化44 分钟前
对 Python 中 GIL 的理解
python·gil
我就是全世界44 分钟前
开源集成开发环境搭建之VSCode启动Jupyter Notebook
ide·vscode·jupyter
极客代码1 小时前
OpenCV Python 深度指南
开发语言·人工智能·python·opencv·计算机视觉
liO_Oil1 小时前
(2024.9.19)在Python的虚拟环境中安装GDAL
开发语言·python·gdal安装
奈斯。zs1 小时前
yjs08——矩阵、数组的运算
人工智能·python·线性代数·矩阵·numpy
Melody20501 小时前
tensorflow-dataset 内网下载 指定目录
人工智能·python·tensorflow
学步_技术1 小时前
Python编码系列—Python抽象工厂模式:构建复杂对象家族的蓝图
开发语言·python·抽象工厂模式
Narutolxy2 小时前
Python 单元测试:深入理解与实战应用20240919
python·单元测试·log4j
Amo Xiang2 小时前
2024 Python3.10 系统入门+进阶(十五):文件及目录操作
开发语言·python