-
Notifications
You must be signed in to change notification settings - Fork 1
Conversation
add one missing colon interface names should start with an I
while I was at it I spent some time trying to smoothen out the code and to get the gh actions to pass when reviewing, please focus on the 1st commit here, which is the only one relevant to the PR |
btw, in order to please the 'Enforce PR label' workflow, as you guessed I'm sure: |
in summary:
the outcome however is:
as far as the other commits:
Later on I'll probably need to split all this in two, but this way you can get a glimpse at what the tests look like right now |
I went ahead and split this in two, as I should have done in the first place only the actual jlab3/jlab4 code change remains in this PR, and the rest is in a new PR sorry for the mess, I'm done now :) |
this is a temporary fix as it works only accidentally with nb7
Hey @parmentelat , thank you so much for working on this! And for providing, in the first place, the port of the extension to Jupyter Lab 4. At the moment I am quite busy but I think it's already a great milestone to have this alpha version of the extension for Jupyter Lab 4. I feel that I should share a bit more of what I think is the plan with you to avoid causing you too much work. My preference would be to package, at some point, the extension within The GitHub actions on this project have been generated by the cookie cutter sccript and I don't know how well they are suited to the extension. I might not take them back to the Last but not least, what I am missing for integrating your changes on the v4 version of the extension in Jupytext, is the packaging part. I have identified four differences:
|
Hi @mwouts thanks for the feedback I had actually not quite realized that the jlab extension was being packaged with a plain (but btw, this means that in all my tests until here, I actually had 2 extensions installed, the one that comes with so OK I understand the goal; on my end the goal is to be able to provide students with installation instructions that are as simple as possible (so typically no so I'm willing to contribute to achieve this kind of goal, I can also try to address the packaging differences on the side, I need to get to speed with this let me know what you think PS. |
checks that app.name is JupyterLab before setting JLAB4 = false this way if a future app has version 1.x, it will not trigger the jlab3 code
I have been able to test - manually that is - that this code works fine with jlab 3: btw, this recipe will install jupytext without the labextension, and it is important in order to make sure there is no leftover of the labextension code conda create -n jlab3-text python=3.11
conda activate jlab3-text
pip install 'jupyterlab < 4.0'
pip install 'git+https://github.com/mwouts/[email protected]'
pip install 'git+https://github.com/parmentelat/jupyterlab-jupytext@jupyterlab4' I'm only checking that one can successfully double-click to open a text notebook ; like always I have this in place cat ~/.jupyter/labconfig/default_setting_overrides.json
{
"@jupyterlab/docmanager-extension:plugin": {
"defaultViewers": {
"python": "Jupytext Notebook",
"markdown": "Jupytext Notebook"
}
}
} |
now that I have realized that installing
I am almost certain of the former (this has been really nagging me for some time) |
we might have a short-term solution for shipping with the standard jupytext packaging a jlab extension that supports jlab3 and jlab4 I'm closing this PR, essentially its intrinsic value has been entirely captured in the PR above |
as mentioned in #3, here is a draft version that
I have not received any suggestion yet on
https://discourse.jupyter.org/t/jlab-extensions-that-target-both-jlab3-and-jlab4/
so I went ahead on my own and came up with this strategy, that computes a global
JLAB4
variableglad to hear if that is improvable