-
Notifications
You must be signed in to change notification settings - Fork 391
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 does not pair notebooks in Jupyterlab #298
Comments
Try to pip3 install jupytext==1.2, this is the newer version that should work with latest jupyterlab |
Hello @augusto-herrmann , thanks for reporting this. Can you quote the first lines of logs when you execute |
No, @mwouts. There is no mention of content managers or Jupytext at all in the Jupyer Lab logs:
I also tried installing jupytext==1.2, as suggested by @marco-matta96. Still no mention of content managers or Jupytext in the logs:
However, now Jupytext commands in the Jupyter Lab UI still appear, but became disabled (greyed out). I did remember to run Previously, in version 1.1.7, they did appear, but had no apparent effect besides putting a check mark next to the selected pairing option. Strangely, with the command
|
The expected log when Jupyter starts is something like: (python3) C:\Users\Marc>jupyter lab
[I 06:34:18.243 LabApp] JupyterLab extension loaded from C:\Users\Marc\Miniconda3\envs\python3\lib\site-packages\jupyterlab
[I 06:34:18.243 LabApp] JupyterLab application directory is C:\Users\Marc\Miniconda3\envs\python3\share\jupyter\lab
[I 06:34:20.300 LabApp] [Jupytext Server Extension] Deriving a JupytextContentsManager from LargeFileManager
[I 06:34:20.302 LabApp] Serving notebooks from local directory: C:\Users\Marc
... The difference with yours is that the Jupytext server extension is not active. Could you execute
and restart If for some reason you cannot activate the server extension, you still have the option to explicitly set the Contents Manager to Jupytext's one in your
Regarding your question about version numbers: |
That did it! Now it works. Thank you, @mwouts. Maybe that step should be added to the Jupyter Lab installation instructions in the documentation?
|
@mwouts I was using jupytext fine before but now the commands have disappeared. I think it's because I installed some extensions that might have interfere with jupytext or jupyterlab. Just trying to confirm this is not a problem with Jupytext itself. My start of Jupyterlab is below:
Editing to add that Jupytext in Jupyter Notebook works fine, and the icons for
|
Hello @hoangthienan95 , your issue may be related to the publication of JupyterLab 1.0, which made the first version of our extension incompatible with JupyterLab 0.35 (see #276 and the resolution at #278). You can either
|
Hi @mwouts , thanks so much for the rapid reply as always! And yes, I tried |
I'm going to close this issue, which was originally about the Jupytext server extension for Jupyter not being active. Now, thanks to #304, we do have a mention about that extension in the documentation. |
I've followed the docs and this issue but still unable to resolve my issue in jupyterlab The log when starting Jupyter Lab shown like this
Version:
What I have done:
|
Hi @yasirroni, thanks for talking the time to comment. As this issue is rather old, I am not sure that the problem you experience is the same as the one reported here. Would you mind opening a new issue? I'll need to know exactly how you created your Python environment, and also what is wrong. If possible, please do not modify your Jupyter configuration, nor activate or enable any extension, as they are expected to be activated automatically (happy to investigate if that is not the case). |
Hi. I have installed Jupytext following the instructions in the README, using
pip
. I usedjupyter lab build
after installation. The versions I'm using are:The commands do appear in JupyterLab UI, just as described in the documentation:
However, if I use the UI to try to pair a notebook, nothing happens. If I save the notebook, no new file in
.md
,.py
or whatever format is ever created.If I do the following in the command line:
then it does create the
.md
file, as expected. But if I open the file in JupyterLab, change something, and save, the markdown file remains unchanged. I have to manually run jupytext in the command line every time.Is this a bug? Is there a workaround?
The text was updated successfully, but these errors were encountered: