-
Notifications
You must be signed in to change notification settings - Fork 386
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
Jupytext manager seems to fail with jupyterfs #618
Comments
Hi @joequant , thank you for the report! Well that is interesting, indeed the Jupytext content manager does use |
Thanks. What the jupyter-fs metamanager does is to take other managers and dispatch them, so the way to get it to work is to have jupyterfs wrapper jupytext inside an internal manager. Getting jupyterfs to work with jupytext looks straight foward. The hard part is to figure out some general mechanism. Just thinking about this, one thing I'd suggest is maybe do the wrappering only if the content manager is subclass of something that's known to work. Otherwise look for some hook where the content manager can provide a monkey patched class. |
Hi @joequant , I think I have a fix for this. Do you think you could give a try to the branch I still have to think about
(e.g. there are still two try/except AttributeErrors, I'll see if I can remove them) |
In the latest version (on I plan to ship a new version within a few days. Meanwhile you can give the dev version a try with:
|
Thanks!!! |
Reopening, cf. #621
@joequant and myself will adapt the test |
@joequant , I think I've solved the remaining issues. Would you mind giving a try to the below and let us know how it works for you?
|
@joequant when using this version I see a warning: |
FYI. Here is there current test harness. It doesn't quite work. Part of it is that when it runs notebook model, metamanager is missing a call to validate the notebook. also I'm trying to figure out how to initialize the metamanager
|
Oh, sorry, I should have let you know that now I am quite happy with the test involving the MetaManager, see here: jupytext/tests/test_contentsmanager.py Lines 1735 to 1821 in af2b15b
|
@joequant , @telamonian , I have prepared a release candidate with the fix:
Would you mind giving it a try and confirm that it works as expected for you? Thanks! |
The content manager for jupytext seems to want a call _get_os_path which seems to break with jupyter-fs metamanager
see jpmorganchase/jupyter-fs#53
The text was updated successfully, but these errors were encountered: