jupyter notebook mark
时间: 2023-08-08 22:07:52 浏览: 64
Jupyter notebook中的"mark"是指在代码单元格中使用特殊符号来标记代码的不同部分,以便更好地组织和注释代码。在Jupyter notebook中,可以通过配置文件来启用mark功能。具体配置方法如下:
1. 打开Jupyter notebook的配置文件jupyter_notebook_config.py。可以通过命令`jupyter notebook --generate-config`生成默认配置文件。
2. 在配置文件中找到以下行:
```
# The directory to use for notebooks and kernels.
# c.NotebookApp.notebook_dir = u''
```
3. 将`c.NotebookApp.notebook_dir`的值修改为你想要设置的目录路径,用于存放notebooks和kernels。
4. 保存配置文件并重新启动Jupyter notebook。
这样,你就可以在Jupyter notebook中使用mark功能来更好地组织和注释代码了。
#### 引用[.reference_title]
- *1* *2* *3* [Jupyter notebook系列(6):更高级的配置Mark(显示行号,更改工作路径,使用sudo权限)](https://blog.csdn.net/qq_41554005/article/details/109776938)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]