Skip to content
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

Compatibility with Notebook7 and jupyterLab4 #1684

Merged
merged 27 commits into from
Jul 18, 2023
Merged

Conversation

brichet
Copy link
Contributor

@brichet brichet commented Oct 17, 2022

This PR brings compatibility to Notebook7 and JupyterLab4, both not yet released.

In Notebook7 the formgrader; assignment list and course list are opened in a tab in the tree view, while the notebook files and feedbacks are opened in a new browser tab.

image
image

Remains to be fixed:

  • some links in formgrader and assignment list open a specific path in file browser. In Notebook<7, this is opening a new browser tab with a tree view. In this version, it changes the current path in file browser tab. Unfortunately, it does not activate the file browser tab, which makes it look like nothing is happening.
  • the feedback files are displayed as plain HTML text instead of being interpreted.
    EDIT: fixed in Fix HTML viewer notebook#6583

Fell free to try it and discuss about expected behaviors.

@github-actions
Copy link
Contributor

Binder 👈 Launch a Binder on branch brichet/nbgrader/jlab4_nb7

@tuncbkose
Copy link
Contributor

Is there any reason not to remove nbgrader/tests/nbextensions?

@jtpio
Copy link
Member

jtpio commented Jun 8, 2023

JupyterLab 4 final is now released, and Notebook 7 beta is available. Maybe this PR could be resumed?

@brichet
Copy link
Contributor Author

brichet commented Jun 8, 2023

JupyterLab 4 final is now released, and Notebook 7 beta is available. Maybe this PR could be resumed?

Sure, I was waiting for some opinions about #1749 first, but in any case, I should have time to work on it in the next few weeks.

@brichet
Copy link
Contributor Author

brichet commented Jun 8, 2023

Is there any reason not to remove nbgrader/tests/nbextensions?

There is no reason, except that I want to clean properly everything related to nbextensions (not only the tests).

tmpPath: tempPath,
mockSettings: {
'@jupyterlab/apputils-extension:notification': {
fetchNews: 'false'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Quick heads-up there were some updates on this config in core JupyterLab in jupyterlab/jupyterlab#14609.

We can check whether the default mockSettings from JupyterLab is already automatically applied, if we should add checkForUpdates: false as well.

@brichet brichet marked this pull request as ready for review June 16, 2023 14:13
@jtpio jtpio self-requested a review June 16, 2023 14:48
@jtpio
Copy link
Member

jtpio commented Jul 18, 2023

Thanks @brichet for working on this 👍

Diff looks good at first glance. Do you think it would be ready to be merged so it can be tested in a 0.9.0a0 release?

@brichet
Copy link
Contributor Author

brichet commented Jul 18, 2023

Thanks @jtpio for looking at it.
Yes, I think we can merge it and test it in a pre-release.

@jtpio
Copy link
Member

jtpio commented Jul 18, 2023

Sounds good, thanks!

@jtpio jtpio merged commit 1b5ffa9 into jupyter:main Jul 18, 2023
@brichet brichet deleted the jlab4_nb7 branch July 18, 2023 11:07
AlirezaT99 pushed a commit to AaltoSciComp/nbgrader that referenced this pull request Aug 6, 2024
* Update dependencies to jupyterlab>=4, fix menu entries and fix mathjax error

* Includes assignment-list, course-list and formgrader extensions as main panel tab

* Remove required dependency to LabShell

* Make it work with Notebook7 and JupyterLab4

* update dependencies

* Refactore create_assignment_extension to depend on CellModel instead of Cell widget, and to simplify the listeners

* Update the tests according to the updates of JupyterLab

* Reintegrate the cellPrompt in create assignment cell widget

* Activate by default the new created tab in Notebook (assignment list, course list and formgrader)

* add test for extensions in notebook

* Fix docs tests and insert nbextensions test in UI-tests

* Update dependencies to jupyterlab-4.0.0a32 and notebook-7.0.0a10

* Downgrade dependency to Notebook as it breaks installation

* bump to Notebook-7.0.0a10

* update dependencies

* Refactor the extensions for a better managment of the menu and palettecommand in Notebook

* Update to Jlab 4.0.0a34 and Notebook 7.0.0a13

* Open the existing Formgrader tab if already loaded from courses list tab

* fix UI tests

* Removal of python 3.7 support and integration of python 3.11 in tests

* Update actions and node version in tests

* Update to jupyterlab 4.0.0a37 and notebook 7.0.0a17

* Fix before-build-npm

* Includes jupyter#1756

* Remove nbextensions and related code

* Update dependencies to lab 4 released and notebook 7b.4

* Add the playwright report as artifact
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants