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

相关推荐
qwsaedca3 天前
在Mac上跑 Kokoro TTS经验总结
rust·mac·tts
2601_962381585 天前
Mac和Windows,哪种电脑适合新手学Python|数智码力分享
windows·python·mac·编程环境·学习入门
山野万澫里5 天前
新版macOS取消了启动台,老用户该如何适配?
macos·mac·启动台
bytebitx13 天前
MacOS 编译腾讯 Mars XLog 及使用(已16KB对齐)
kotlin·mac·apk
weixin_5316708915 天前
Interlude起来:动作动画和文字通知哪个更适合休息提醒?Mac上有没有用桌宠做动作引导的软件?
人工智能·macos·mac·swift
张星河zen16 天前
2nm工艺+AI算力跃升,深度拆解苹果Mac mini与Mac Studio主力芯片M6/M5 Ultra
mac·芯片·苹果·m6·m5
钱栈up23 天前
Mac 开发机一键发版不用切环境:我这样改造了团队的后端部署脚本
运维·python·mac
weixin_5316708924 天前
Interlude起来:Swift原生Mac软件有什么优势?原生Mac应用和Electron应用有什么区别?
人工智能·macos·mac·swift
霸刀1 个月前
一次“Google 能打开,FlexTV 打不开”的 DNS 故障排查:从 curl 超时到完整证据链
mac·cdn·dns
wangruofeng1 个月前
3 步把 MacBook 变成 7×24 远程主机,人在外面随时接管桌面
ios·agent·mac