-
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 menu not working and out of date documentation for installation process #630
Comments
Hi @bartskowron , thank you for the report. I'll take care of updating the documentation, good point! I'm sorry to see you struggle with the package installation. Jupytext is a Python package that comes with three Jupyter extensions, but in some cases (e.g. From what I see above you now have the contents manager activated (i.e. the notebook icon on text documents). You also activated the notebook extension in the right way, so I don't see why you don't have the menu yet. May I ask if you have successfully installed any other notebook extension? Also hopefully this can help:
|
Hi @mwouts and thanks for the quick response. I appreciate it!
I installed it via
As I said. After installing jupytext via pip, 2 of 3 extensions are working correctly. I actually forgot to say in the first post that content manager is working even without setting up the I barely believe that this is installation issue. Everything was fine and done automatically. The only problem is with the menu extension.
I tried one other extension and it was working fine.
I may try it if there is no other options.
No, I don't use conda. And I would really not to be forced to use yet another package manager as for now it would be used only for this particular package. Anyway, just for clarification: My versions:
Could you please tell me where exactly the extension should be installed? I may take a look at the directories and verify if the installation was successful. Is there any log that I can verify which extensions are loaded by Jupyter? I tried to use |
Well it depends on your Python/Jupyter install. Run In my latest conda env the extensions are at the following locations:
|
Thanks for the outputs!
The
I guess they are doubled as one copy (under the virtualenv path) was installed automatically while installing Jupytext. The another copy was installed manually as described in #630 (comment) (there is missing EOL in the file BTW.). I think, I'm going to wait with further investigation until you will upgrade Jupyter yourself first ;) It clearly shows that everything was installed correctly in the first place (via pip). |
Well the menu is for Jupyter Notebook, not lab
Feel free to submit a PR on https://github.com/mwouts/jupytext/blob/master/jupyter-config/ (a bit surprising, the pre-commit hook should have fixed that)
Go to the notebook interface, not lab, open a notebook, open the browser logs, and search for something like this: If that does not solve it, I recommend that you install the collection of notebook extension: https://jupyter-contrib-nbextensions.readthedocs.io/en/latest/install.html . In particular they provide a UI in which you can select which extension should be activated (and Jupytext should appear as one of them when it is installed). |
This solves the problem! ;-)
After investigation it looks like a Jupyter bug. The After uninstallation via |
Hi,
I have followed the instructions from: https://jupytext.readthedocs.io/en/latest/install.html
1. Jupytext’s contents manager
After installation and building the extension I get this in log output:
[I 15:47:54.105 LabApp] [Jupytext Server Extension] Deriving a JupytextContentsManager from LargeFileManager
In the the documentation:
[I 10:28:31.646 LabApp] [Jupytext Server Extension] Changing NotebookApp.contents_manager_class from LargeFileManager to jupytext.TextFileContentsManager
Also this part is out of date, from the documentation: Set
c.NotebookApp.contents_manager_class
andc.LabApp.contents_manager_class
tojupytext.TextFileContentsManager
.Now I get this in output:
[I 15:52:53.456 LabApp] [Jupytext Server Extension] NotebookApp.contents_manager_class is (a subclass of) jupytext.TextFileContentsManager already - OK
2. Jupytext menu in Jupyter Notebook
Not working automatically. Not working after the following commands:
The text was updated successfully, but these errors were encountered: