mac上修改jupyterlab工作目录

mac上使用anaconda中的jupyterlab。

修改默认的工作目录

复制代码
upyter lab --generate-config
Writing default config to: /Users/xxx/.jupyter/jupyter_lab_config.py
vim /Users/xiece/.jupyter/jupyter_lab_config.py
# 设置c.ServerApp.notebook_dir
c.ServerApp.notebook_dir= '/Users/xxx/jupyternotes'

修改后重启anaconda再重启juypterlab工作目录也还是没改,命令行直接运行jupyte lab,发现报错是因为没有找到文件夹/Users/xxx/jupyternotes,

建好目录以后,重启jupyter lab,发现工作目录设置成功,日志如下:

复制代码
[I 2024-07-03 21:32:20.497 ServerApp] notebooks 运行所在的本地路径: /Users/xxx/jupyternotes

注意给文件夹授权

chmod 777 /Users/xxx/jupyternotes/

然后运行:

sudo jupyter notebook --allow-root

相关推荐
wangbing11251 天前
_MACOSX目录是什么
mac
怎么没有名字注册了啊2 天前
Apple 编年史
mac·apple
爱玫瑰的小王子4 天前
Window 转 Mac 不痛指南😁
mac
『昊纸』℃4 天前
Mac上编译C语言的简易方法
c语言·mac·教程·xcode·编译
shughui5 天前
2026最新JDK版本选择及下载安装详细图文教程【windows、mac附安装包】
java·linux·开发语言·windows·jdk·mac
一直会游泳的小猫6 天前
homebrew
linux·mac·工具·包管理
子沫202011 天前
mac下载VMware Fusion
macos·mac·vmware fusion
段帅龙呀11 天前
Ubuntu 22.04 仿 macOS 桌面改造指南
ubuntu·mac
搬砖的前端12 天前
本地模型+TRAE CN 打造最优模型组合实测:开源主模型+本地辅模型,对标GPT5.2/5.3/Gemini-3-Flash
前端·ai·mac·ai编程·qwen·trae·qwen3.6
胡汉彡13 天前
MAC设置本地host方法
mac