-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Improve Edit/View behavior #2911
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a pretty reasonable choice for edit.
Sorry if this isnt the right thread for this question: Since upgrading to jupyterhub 5.2.0, the default option for .pdf's switched from view to edit. Is this intentional? Separately, where is this "white list" located, so that I could manually tell the hub to view .pdf's instead of edit them. Thanks! |
(i'm guessing you mean jupyter notebook - jupyterhub is on version 0.8.1) The list of viewable filetypes is here: notebook/notebook/static/tree/js/notebooklist.js Lines 558 to 561 in bbf0ead
PDF should probably be on it. |
Follow up from #2203 (comment)
This makes the default path
edit
for files so that all files can edited. If a file is binary or otherwise uneditable, a user can still edit it and they will see the following error:They're browser won't crash or anything, so no harm, no foul.
If a file's MIME type matches
text/html
or the whitelist of viewable extensions (a list of browser-supported extensions borrowed from https://support.google.com/chromebook/answer/183093?hl=en), then it will use theview
path by default.