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

相关推荐
fengyun289116 小时前
Omi录屏专家 Screen Recorder by Omi 屏幕录制Mac
macos·mac·录屏·屏幕录制
二夕聊数据17 小时前
AI 时代如何打造一个更顺手的 Terminal?
mac·iterm
fengyun28913 天前
fcpx音视频剪辑编辑 Final Cut Pro X(Mac电脑)
macos·mac
伊成4 天前
Mac中如何Chrome禁用更新[update chflags macos]
chrome·mac
fengyun28914 天前
Mac电脑 虚拟机 VMware Fusion13
macos·mac·虚拟机
2401_8885670014 天前
Mac电脑-媒体文件格式转换-Permute
macos·mac·媒体·格式转换
2501_9205525615 天前
Mac电脑-音视频剪辑编辑-Final Cut Pro X(fcpx)
macos·音视频·mac
Bar_artist15 天前
键盘觉醒:Raycast 把 Mac 变成「AI 指令战舰」
人工智能·mac·wwdc·raycast
2401_8885670016 天前
Mac电脑 窗口分屏管理 Magnet Pro
macos·mac·分屏
伊织code16 天前
macOS - 根据序列号查看机型、保障信息
macos·mac·macbook·查看·序列号·机型·对应