ipython jupyter notebook,Ipython Notebook:Mac中的jupyter_notebook_config.py在哪里?

I just started using a Mac, so please forgive me if this sounds too naive.

I'm trying to install Interactive Parallel. From https://github.com/ipython/ipyparallel, it says I need to find jupyter_notebook_config.py.

I've already installed python and related packages with Anaconda, and I can use the ipython notebook. But when I search with spotlight for jupyter_notebook_config.py, I just can't find this file:

4fc6f7049d86b84761dae135cd10e67a.png

So, where can I find this file?

UPDATE: this is my home folder:

a3a2df8dafeb8cb22e6619b316d1139d.png

There is only anaconda.

解决方案

Look in your home directory for a .jupyter folder.

It should contain the file according to the docs:

The notebook web server can also be configured using Jupyter profiles

and configuration files. The Notebook web server configuration options

are set in a file named jupyter_notebook_config.py in your Jupyter

directory, which itself is usually .jupyter in your home directory.

If the .jupyter folder does not contain a jupyter_notebook_config.py file, you need to generate it with jupyter notebook --generate-config.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Jupyter Notebook设置默认语言为文,你可以按照以下步骤操作: 1. **安装必要的库**:首先,确保已经安装了支持文的库,如`pandas`的`Chinese`或`jieba`等。如果没有,可以通过命令行或对应的包管理器(如pip)安装它们。 ```python !pip install pandas chinese ``` 2. **更改默认字体**:为了支持文显示,你可能需要更改Notebook的字体。在`Settings`(在网页版通常位于右上角,或者在命令行界面使用`jupyter notebook --generate-config`生成配置文件后编辑`jupyter_notebook_config.py`)找到`c.KernelManager.kernel_font_family`选项,将其设置为支持文的字体,例如`Microsoft YaHei`或`SimHei`。 3. **设置IPython的显示语言**:在你的Python环境IPython的`InteractiveShell`类提供了设置`display_unicode`属性来控制是否使用Unicode字符。你可以通过以下代码将显示语言设置为文: ```python import IPython IPython.display.set_matplotlib_formats('svg') # 设置SVG格式以更好地支持IPython.core.interactiveshell.InteractiveShell.display_banner = None # 隐藏启动信息 IPython.core.interactiveshell.InteractiveShell.ast_node_interactivity = "all" # 全部显示 IPython.display.HTML('\n'.join(['<script type="text/javascript">', '/* <![CDATA[ */', 'window.MathJax = {', ' tex2jax: {', ' inlineMath: [ ["\\(","\\)"] ],', ' processEscapes: true', ' },', ' messageStyle: "none",', '};', '/* ]]> */', '</script>', '<script type="text/javascript" async src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML">', '</script>'])) # 加载数学公式支持 ``` 4. **重启Notebook**:更改设置后,记得关闭并重新打开Jupyter Notebook,新的设置才会生效。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值