-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to load external stylesheets #87
Comments
I can confirm, that removing the extra slash fixes the problem. I checked that with curl, and the stylesheet is returned then. The info about MIME mismatch is caused by the fact that when an invalid path is accessed not 404 but 403 is returned with a HTML file stating that the path is forbidden (rather than non-existant). |
I suppose the error comes from the fact that |
OK, I think I have nailed down that issue. So the problem appears only when the notebook is in the root folder where jupyter is run. In that case This is such a nasty issue, since I struggle with it for so many times, but magically something was resolved. I thought it was the new version of RISE or sth that fixed the error, but the truth was that I was running Jupyter in a different directory...
|
@apohllo Can you submit a pull request? 😉 |
Duplicate of #27. Appears that fix has not yet been released. |
Applying external css stylesheets does not work, neither the default rise.css nor a custom stylesheet (same name as the notebook file, placed in the same folder) are loaded correctly. While debugging this issue, I noticed that the file path construction might be incorrect (see the additional '/' right before the stylesheet filenames 'rise.css' and 'test.css'; screenshot is taken from developer console of the browser).
Relevant code snippet might be at rise.ts:925, where the paths for both elements are built using the same method.
The text was updated successfully, but these errors were encountered: