-
Notifications
You must be signed in to change notification settings - Fork 8
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
Jupyterlab 4 upgrade #15
Jupyterlab 4 upgrade #15
Conversation
5c9dceb
to
5bf9c0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have added few comments. Couple of important things which is blocking me to test out the changes locally
I am not able to run pip install -e .
without a setup.py file, it complains with the below error:
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /codemill/singhar/jupyterlab-skip-traceback
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)
Also when I run pip install .
(without editable mode install), I run into the below error
ValueError: Extensions require a devDependency on @jupyterlab/builder@^3.6.2, you have a dependency on 4.0.0-rc.0
I checked my node_modules in my venv and it does has @jupyterlab/builder@ 4.0.0-rc.0, do I need to upgrade some other packages to get this working, any leads here?
python -m build | ||
pip uninstall -y "jupyterlab-skip-traceback" jupyterlab | ||
|
||
- name: Upload extension packages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the upload as part of the github workflow or we keep it only when release this package.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The artefacts are just used in the test_isolated
step. This could in principle be condensed into a single job, but it's the default for the ts-extension-cookiecutter
repo, so I kept it. It's really up to you if you want to get rid of test_isolated
🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
☝️ To be clear this has nothing to do with releasing the package, this is only used during the CI job. We're just uploading the extension to temporary github storage for the duration of the job.
"**/*.d.ts", | ||
"tests" | ||
], | ||
"prettier": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any strong reason to move eslint and prettier to package.json instead of keeping them in seperate files. from the extension upgrade in https://github.com/jupyterlab/extension-examples/pull/225/files I do think think this is mandatory to do.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's definitely not mandatory, and there's no strong reason to do so other than reducing the amount of stuff cluttering up the repository. I'm not a big fan of needing loads and loads of boilerplate files clogging the repo as is the usual for the extension cookiecutter, but if you prefer these to be broken out into separate files then I'm happy to do so.
5bf9c0c
to
6f195be
Compare
As far as your build issues go:
|
Yes, I was able to use the upgraded extension after fixing build issues at my end. |
@singharpit94 @ankit-gautam23 I think this is ready to be merged. Is there anything else left to do here? |
@peytondmurray build issue was the biggest concern as @singharpit94 has solved it so I think we are good to go. |
@ankit-gautam23 or @singharpit94 I don't have merge rights, can you approve the workflow and merge when it passes? |
Good from my end as well. One minor thing, can you update the README too with the latest changes, post that we can merge |
1 similar comment
Good from my end as well. One minor thing, can you update the README too with the latest changes, post that we can merge |
@peytondmurray I think we will need some changes wrt to bumping the version in package.json, changelog. Also few tests are failing, can you take a look? |
Oh interesting - the link checker already caught some failing links to invalid tags. Nice! |
812e2eb
to
c60cbd6
Compare
@singharpit94 Okay, |
@peytondmurray check links still failing, do we need to release first or update somewhere else to get this build green? |
For the For the The build error is weird, I'm still debugging it; let me get back to you... |
5f66234
to
797aad9
Compare
Huh, so the extension template used in the upgrade incorrectly generates the wheel names for the github build action when uploading/downloading artifacts. I'll report this as a bug on the jupyterlab repo. |
@singharpit94 @ankit-gautam23 Looks like tests are now passing; after we merge this I'll make another PR to update |
This PR adds Jupyterlab 4 support for
jupyterlab-skip-traceback
. I tested this out with 4.0.0b1 and everything seemed to work:There are some minor cosmetic changes I noticed from 3.x due to changes in global styles; the most noticeable one that I needed to fix was the size of the copy button, which appeared much larger in 4.x than in 3.x. Aside from that there's a slight difference in transparency of the caret and the copy buttons - I'm hoping that going with the new 4.x styles is acceptable, but if not I can make the change to match the old styles.