-
Notifications
You must be signed in to change notification settings - Fork 160
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
Upgrade nbdime for jupyterlab 4 #664
Upgrade nbdime for jupyterlab 4 #664
Conversation
55b26b1
to
4a83fed
Compare
99069d8
to
58238ca
Compare
.gitignore
Outdated
@@ -12,6 +12,7 @@ MANIFEST | |||
.cache | |||
.pytest_cache | |||
.idea | |||
.yarn |
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.
Note that this repo is currently using npm + package-lock.json, so please avoid adding yarn things.
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.
@vidartf Thanks for your feedback. I will change this for npm usage.
package.json
Outdated
"lerna": "^4.0.0", | ||
"rimraf": "^5.0.0" | ||
} | ||
"private": true, |
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.
There are a lot of formatting changes in this PR. It would be very much easier for me to look at it if pure formatting changes were removed! 😃
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.
@vidartf That's right. Would you be ok to add a formatter like prettier on the project? This could be done in a separate PR. If so I can do it. The changes related to the migration to jupyterlab 4 would then appear more clearly. Please let me know what you think about it. Thanks.
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 bottle neck for my work on nbdime is the time I have to spend on it. If this is just a config for prettier + an autoformat commit + the ignore config so that GH doesn't consider that commit for git blame
, it would be ok. I don't want to have to spend time on managing commit hooks or CI actions related to formatting though. So it might just be simpler to undo the pure-formatting changes in this PR (they will also pollute the git blame
as they are).
Thanks for your understanding 😃
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.
@vidartf Thanks for your reply. So we can try to do what you are suggesting : " a config for prettier + an autoformat commit + the ignore config so that GH doesn't consider that commit for git blame." As a first step, I opened this draft PR #668 with a config for prettier (that can be tuned), and a commit with the autoformat changes. I guess that we can add in a second time a .git-blame-ignore-revs
so that Github does not consider this commit for git blame
. Let me please know if the prettier config does not fit your expectations.
771968a
to
616bb52
Compare
616bb52
to
44e6205
Compare
44e6205
to
a1e3402
Compare
f258f32
to
84e276e
Compare
9a178d2
to
d4711df
Compare
d4711df
to
66c64a5
Compare
6cbdb28
to
2530d06
Compare
…), add a listener, try to reintroduce syntax highlighting (not yet working) and introduce minor css changes.
2530d06
to
8b0b49d
Compare
a87e263
to
22f9f70
Compare
Fix wheel name for windows Pass wheel name to ui-test job
As I mentioned previously, I've been traveling recently, so I've missed a lot of the discussion here. I will try to read through the discussion, but for now: I merged the lint PR, so now @HaudinFlorence is no longer a first-time contributor, so workflows should no longer need manual approvals. |
If you want, I can create a new branch on this repo for now (~"lab4"). Will that help, or does the actions config need to be in the default branch? |
It needs to be on the default branch I believe. I had created https://github.com/jupyter/nbdime/tree/3.2.x yesterday so I think we could merge this one into |
@vidartf Thanks a lot for merging the lint PR. A new PR rebasing with master has been opened here #673 with the help of @fcollonval. Hoping that the ui tests will be green🤞🏻🟢 |
Closing as superseded by #673. |
This PR is a first pass on trying a migration to jupyterlab4. It includes :
Main changes
This PR includes among others the migration to CM6 of these features of the web applications:
Diff app rendering example
Merge app rendering example
Styling/UX differences
sinus
function in the central editor in the merge example above).Future work and follow up tasks
In some cases, the result of the native function
findAlignedLines
is not right leading to a misalignment of lines to be put at the same height and to incorrect treatment of adding paddings. An issue has been opened with an example findAlignedLines sometimes returns unexpected results #669More ui tests will be added when
findAlignedLines
will be fixed for the non working caseIn reference to comment Upgrade nbdime for jupyterlab 4 #664 (comment), changes will have to be made after the PR is merged regarding use of
find
,each
,toArray
related to Lumino to move to JS equivalent.