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

相关推荐
南瓜胖胖2 天前
【如何提取现有seismic unix文件为头文件和道数据文件】
macos·unix·mac
Xminyang4 天前
【自动化脚本工具】Hammerspoon (Mac)
mac·自动化工具
心态与习惯4 天前
mac 下 java 调用 gurobi 不能加载 jar
java·jar·mac·cplex·gurobi
一根烂笔头5 天前
Mac M3/M4 本地部署Deepseek并集成vscode
vscode·ai·mac·deepseek·m4
CLCNboss10 天前
MacOS配置Homebrew
mac
木兰不吃草10 天前
如何在 Mac 上下载安装仙剑游戏仙剑世界?可以通过IPA砸壳包安装非常简单
游戏·macos·ios·游戏程序·mac
我只会写Bug啊17 天前
只需三步!5分钟本地部署deep seek——MAC环境
大模型·mac·deep seek
凡许真22 天前
Kafka的安装及相关操作命令
kafka·mac·操作命令·0.10.2.1·单机版
shichen5011 个月前
MacOS 如何映射快捷键
macos·mac·策略模式
凡许真1 个月前
HBase-2.5.10 伪分布式环境搭建【Mac】
hbase·mac·zk·伪分布式