虚拟环境中的Jupyter目录

时间:2020-07-03 17:21:06

标签: jupyter conda virtual-environment jupyter-kernel

在虚拟环境中运行时,jupyter在哪里存储内核规范和其他数据?

(我对 df.rename(columns={'High':'high', 'Low':'low', 'Open':'open', 'Close':'close', 'Volume':'volume', 'Adj Close':'adj close'}, inplace=True) df.rename(index = {'Date':'date'}, inplace=True) 环境感兴趣,但是了解其他类型的虚拟环境也会很有趣)。

1 个答案:

答案 0 :(得分:0)

我想我找到了。

在虚拟环境中,可以运行

jupyter --paths

,然后将会看到jupyter locations(对于安装在当前活动环境中的jupyter)。

类似的东西:

config:
    /home/<user>/.jupyter
    /home/<user>/anaconda3/envs/<this-env>/etc/jupyter
    /usr/local/etc/jupyter
    /etc/jupyter
data:
    /home/<user>/.local/share/jupyter
    /home/<user>/anaconda3/envs/<this-env>/share/jupyter
    /usr/local/share/jupyter
    /usr/share/jupyter
runtime:
    /home/<user>/.local/share/jupyter/runtime

kernelspecs所在的目录为/home/<user>/anaconda3/envs/<this-env>/share/jupyter/kernels