我正在尝试使用我的ipython笔记本自定义主题。为此,我首先创建了一个新的配置文件:
C:\>ipython profile create teststyle
[ProfileCreate] Generating default config file: u'C:\\Users\\mayankpj\\.ipython\\profile_teststyle\\ipython_config.py'
[ProfileCreate] Generating default config file: u'C:\\Users\\mayankpj\\.ipython\\profile_teststyle\\ipython_qtconsole_config.py'
[ProfileCreate] Generating default config file: u'C:\\Users\\mayankpj\\.ipython\\profile_teststyle\\ipython_notebook_config.py'
[ProfileCreate] Generating default config file: u'C:\\Users\\mayankpj\\.ipython\\profile_teststyle\\ipython_nbconvert_config.py'
然后我更换了" C:\ Users \ mayankpj.ipython \ profile_teststyle \ static \ custom \ custom.css"来自此处的文件:https://github.com/nsonnad/base16-ipython-notebook 我抓住了一个css文件并将其重命名为custom.css并用它替换了上面的文件。
现在,我使用上面的配置文件启动了ipython笔记本会话:
C:\>ipython notebook --profile=teststyle
2014-12-16 04:11:44.407 [NotebookApp] Using existing profile dir: u'C:\\Users\\mayankpj\\.ipython\\profile_teststyle'
2014-12-16 04:11:44.500 [NotebookApp] Serving local MathJax from C:\Users\mayankpj\.ipython\nbextensions\mathjax\MathJax.js at /nbextensions/mathjax/M
athJax.js
2014-12-16 04:11:44.828 [NotebookApp] Serving notebooks from local directory: C:\
2014-12-16 04:11:44.828 [NotebookApp] 0 active kernels
2014-12-16 04:11:44.828 [NotebookApp] The IPython Notebook is running at: http://localhost:8888/
2014-12-16 04:11:44.828 [NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
但是,当我创建一个新笔记本时,它与之前相同。我已经将我的ipython更新到2.3.0并在Windows 8上使用pythonxy发行版。我已经在我的机器上安装了mathjax和pandoc的本地副本,并且可以将笔记本导出为html和rst文件。
非常感谢任何帮助!
编辑:我也尝试过隐身模式的浏览器,但无济于事。另外,我查看了js控制台,它有以下信息: Default extension for cell metadata editing loaded.
rawcell.js:87 Raw Cell Format toolbar preset loaded.
slideshow.js:48 Slideshow extension for metadata editing loaded.
main.js:29 patching CM for undefined indent
kernel.js:124 Kernel started: 182e1a5b-8e4b-4993-a1ac-be2c97508e79
kernel.js:151 Starting WebSockets: ws://localhost:8888/api/kernels/182e1a5b-8e4b-4993-a1ac-be2c97508e79
:8888/static/components/backbone/backbone-min.map:1 GET http://localhost:8888/static/components/backbone/backbone-min.map 404 (Not Found)
:8888/static/components/underscore/underscore-min.map:1 GET http://localhost:8888/static/components/underscore/underscore-min.map 404 (Not Found)