-
Notifications
You must be signed in to change notification settings - Fork 310
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
Register new file types #884
Comments
I think that for our use case, it should always be |
I started the NBectomy and could remove quite a lot of code while keeping JupyterLab functional. |
If we were to allow for the registration of Type Handlers as an attribute of the current Practically speaking, the job of the If we let Type Handlers deal with those aspects of the "content" where the file type in the model identifies which Types that are not I'm not sure if this has any synergy to what has been done in RTC and I apologize for not following that more closely. |
Thanks Kevin, I think this is exactly what we need if we want to register new file type handlers. |
Does the merge of #895 close this, or are there still remaining tasks? |
I'll close it for now, we can re-open if we need to. |
I have found that custom file type is not allowed to be saved now. So we have remaining tasks and this issue should be re-opened.
jupyter_server/jupyter_server/services/contents/handlers.py Lines 231 to 262 in 4604ce0
|
Closing again, as #1013 was merged. |
Problem
Currently, jupyter-server has the notion of file type, which is hard-coded to either
"directory"
,"file"
or"notebook"
. Any other type would be treated as invalid.In jupyter-ydoc we have introduced the notion of Y document type. Current built-in types are YFile and YNotebook, which map to a
"file"
and a"notebook"
, respectively. This mapping is extensible using entry points.So one can create new Y document types, but not jupyter-server document types. Say I have a new file type that I want to open with JupyterLab and want it to be collaborative, I can create a Y document for it but I won't have any other choice than have it seen as a jupyter-server
"file"
.Proposed Solution
I mostly have questions:
"directory"
and"file"
in jupyter-server, and get rid of"notebook"
? I know we validate notebook formats, but should it be the responsibility of the server?Additional context
@trungleduc's PR.
The text was updated successfully, but these errors were encountered: