Closed saumickm closed 5 years ago
I had the same problem #545.
This issue is related to https://github.com/jupyter/notebook/issues/4469.
The PR on https://github.com/jupyter/notebook/pull/4468 solves the issue.
You look for the file notebookapp.py
and add the new line.
Here's what I did, following the instructions here: https://github.com/jupyter/notebook/pull/4468/files to fix the issue:
Go to file explorer and search for the file "notebookapp.py". This particular file was here: [C:\Users\
Press Ctrl+F to find the line "def init_mime_overrides(self):" Then delete these two lines :
# We know the mimetype always needs to be text/css for css
and add,
# Tornado uses this when serving .css and .js files, causing browsers to
# reject these files. We know the mimetype always needs to be text/css for css
# and application/javascript for JS, so we override it here.
mimetypes.add_type('text/css', '.css')
mimetypes.add_type('application/javascript', '.js')
make sure the indentation is correct for your editor I recommend typing it for that reason instead of copying it.
Thanks to @EloyRD @ciaranlangton
I'm trying to open Jupyter but its not displaying in any of the browsers, when I open console it states "blocked due to mime type mismatch". Here's how the errors in the console looks like.