Jupyter webpages not displaying properly

孤街浪徒 提交于 2019-12-12 02:46:48

问题


Screen shot here. With Cntrl-Shift-I

No matter how I install Jupyter(aka IPython) I get a dud webpage. It does not display tabs or menus as expected.

The screen shot above is from a 64bit Windows Anaconda install. It was a default install. Install finished. No changes to configuration. First action after install was select IPython menu item in start menu.

Now, trust me, I have tried everything. I have tried installing IPython from pip over top my python2.7 installation, anaconda etc. No matter how I install it ends up with the same problem. I even tried 32bit installs etc.

It doesn't appear to be the browser as both IE and Chrome see the same mangled display.

It is almost like the css files are not being picked up or are not there at all.

I opted to allow the installation of the Anaconda to update my environment variables etc. so the dang blasted thing should be finding where it has put itself.

What is the likely cause? What is the fix please?


回答1:


I did have a very similar issue on Windows recently. Some program has overwritten your mime type associations. For me it was Inkscape killing SVG by setting the mime type to application/svg.

Try this on terminal:

import mimetypes

mimetypes.guess('file.css')

You should get text/css. If you get application/css this is most likely your problem. My solution: Change back the mime type association. Start regedit and search for application/css in HKEY_CLASSES_ROOT. Replace it with text/css.

Please refer to this https://github.com/ipython/ipython/issues/7024 for further reference.



来源:https://stackoverflow.com/questions/31899764/jupyter-webpages-not-displaying-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!