-
Notifications
You must be signed in to change notification settings - Fork 317
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
Click on the course name in formgrader but does nothing #1888
Comments
the step i install as follow I try to use other way, but also same issue |
Did you look into this issue ( #1794 ). It might provide some insight. |
I see this Link, but didn't found solution. could you help provide more detail solution ? And found following error. thanks in advance! [SingleUserLabApp | WARNING] Skipping XSRF check for insecure request GET /user/vcm/formgraders |
Sorry but I never found a real solution. I try with jupyterlab (so you-jupyterhub.sth/user/username/lab) but than I ran into some other issues with nbgrader, so I am not sure if this is a solution. The ananke project might include a solution (https://github.com/jeflem/ananke/tree/main), but again I can't provide more than the link. |
The source of problem is that when you're using JupyterLab, the formgrader page expects to be inside an iframe, and thus changes it's click handler. When you're in the notebook, the link is a normal The issue in my opinion is two-fold:
@brichet I would consider this a bug. |
Thanks @shreve for the details. I agree that this test is naïve, do you have an idea how to make it more robust ? What I don't understand is why the formgrader is served by jupyterlab if the intention is to use notebook 6.
|
1 No, Only installed jupyternotebook. |
@xinxin2v Reported that they're running from JupyterHub, which uses The fix is to check the environment the page is running in and use navigation that makes sense in that context. In the PR I just issued, I got rid of |
OK, thanks for the clarification @shreve, I didn't know that notebook < 7 ran with |
Operating system
nbgrader --version
nbgrader --version
Python version 3.9.17 (main, Jul 5 2023, 20:41:20)
[GCC 11.2.0]
nbgrader version 0.8.5
conda list |grep nbgrader
nbgrader 0.8.5 pyhd8ed1ab_0 conda-forge
jupyterhub --version
(if used with JupyterHub)root@jpserver:/usr/local/etc# conda list |grep nbgrader
nbgrader 0.8.5 pyhd8ed1ab_0 conda-forge
root@jpserver:/usr/local/etc# jupyterhub --version
4.1.5
root@jpserver:/usr/local/etc# conda list |grep jupyterhub
jupyterhub 4.1.5 pyh31011fe_0 conda-forge
jupyterhub-base 4.1.5 pyh31011fe_0 conda-forge
jupyter notebook --version
root@jpserver:/usr/local/etc# jupyter notebook --version
6.5.6
root@jpserver:/usr/local/etc# conda list |grep notebook
notebook 6.5.6 pyha770c72_0 conda-forge
notebook-shim 0.2.4 pyhd8ed1ab_0 conda-forge
Expected behavior
A notebook opens upon clicking onto the name of an assignment. (formgrader page and there managing assignments)
i login jupyterhub, switch to notebook, then open page of Manage Assignments , when i click on the course name in formgrader , then should open assignment folder
Actual behavior
I login jupyterhub, switch to notebook, then open page of Manage Assignments , when i click on the course name in formgrader but does nothing
Steps to reproduce the behavior
Have JupyterHub with nbgrader and one classes of ps1 setup.
Go to formgrader page and there managing assignments and add an assignment or try to use the preexisting ps1 that comes with the quickstart (following the demo-setup-steps for multiple classes).
The text was updated successfully, but these errors were encountered: