Jupyter webpages not displaying properly

2019-09-11 07:18发布

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条回答
三岁会撩人
2楼-- · 2019-09-11 07:50

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.

查看更多
登录 后发表回答