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

相关推荐
wa的一声哭了1 天前
Mac os安装Easyconnect卡在正在验证软件包
运维·服务器·git·macos·eclipse·github·mac
用户31187945592187 天前
Keka for Mac v1.2.0 安装教程|pkg 文件安装步骤详解(附安装包)
mac
用户311879455921812 天前
Mac版PDF Squeezer v4.5.1安装教程(DMG文件下载+详细步骤)
mac
LinXunFeng14 天前
如何舒适地沉浸式编程,这是我的答案
windows·程序员·mac
用户311879455921814 天前
Mac 桌面动态壁纸软件|Live Wallpaper 4K Pro v19.7 安装包使用教程(附安装包)
mac
昭昭日月明20 天前
mac 效率工具:Raycast 的扩展开发
前端·mac·设计
EEE1even20 天前
Mac查看本机发出请求的IP地址
服务器·网络·mac
用户311879455921821 天前
4K Wallpaper mac v2.7.dmg 安装教程(Mac电脑详细安装步骤4K壁纸Mac下载安装)
mac
小易不咸鱼21 天前
Mac知识:mac读不出ntfs盘?4种解决方案与原理解析
mac·产品
用户0958267572791 个月前
前端工程师第一次mac系统安装mysql实践手册
mac