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

相关推荐
hanjq_code2 天前
Mac电脑ROG键盘蓝牙模式下 Caps Lock 键无法切换语言的解决办法
mac
A懿轩A3 天前
【2026 最新】JDK 下载与安装:在 macOS 下使用 Homebrew 和 jenv 完美管理多版本 JDK
java·开发语言·jdk·mac
A懿轩A4 天前
【2026 最新】Python 下载与安装:在 macOS 下使用 Homebrew 和 pyenv 完美管理多版本 Python
python·macos·mac
HashFlag5 天前
Git经典锁报错问题
linux·windows·git·mac
zhensherlock6 天前
Protocol Launcher 系列:Agenda 优雅组织你的想法与日程
javascript·macos·ios·typescript·node.js·mac·ipad
zhensherlock18 天前
Protocol Launcher 系列:Pika 取色器的协议控制(上篇)
前端·javascript·macos·typescript·github·mac·view design
钱多多_qdd19 天前
mac上安装claude
ai·mac
zhensherlock22 天前
Protocol Launcher 系列:App Store 精准引流与应用推广
javascript·macos·ios·typescript·iphone·mac·ipad
贝锐24 天前
打破距离限制!向日葵端口映射功能远程访问本地 Jupyter Lab
远程·端口映射·jupyter lab
jianghao202525 天前
realesrgan-gui跨平台使用指南:Win/Mac/Linux全支持
linux·windows·mac·跨平台软件·realesrgan-gui