-
Notifications
You must be signed in to change notification settings - Fork 326
View Feedback
link not working whin in lab mode
#1664
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
Comments
(and to bring a note of levity.... can we call this I'll get my coat...) |
Thanks for reporting this. The link is the one in |
Hmm...... I wonder if there's some proxy shenanigans going on. Do you know of any other API calls that I can test to see if there's a general problem with my docker-in-k8s setup, or it's specifically this call? .... hang on, I get Promethius metrics in Classic mode... so it's not specifically the url that's failing |
I just came across this again, it looks like you already had this problem during the first tests of nbgrader on JupyterLab with your environment: A possible reason could be that your feedback path is not in the JupyterLab root path. |
Indeed - I noticed it when the changes first came round.... then I had to go and finalise all the notebook offerings for our service in time for testing & rollout for the new academic year [with all the lead-time that requires] - so wasn't able to pursue properly at the time. My feedback path is standard.... though with There's no 'hub involved, we have a custom front-end that spawns into a k8s cluster directly.
This does not apply - the notebook server is complete & self-contained... using an external exchange to transfer assignment files between users rather than the default file-copy. If I switch my 'lab UI to the classic interface - simply by editing the url from In 'lab mode, I can traverse to the feedback - for example
however the event is calling
Note that if I edit the event URL to be
then the UI sorts it self out & works just fine. ... so I'm deducing the Is there a reason why the call is to |
For what I understand, both are calling the When it calls the |
Aha!!! So - the fragment of html is created by code https://github.com/jupyter/nbgrader/blob/main/src/assignment_list/assignmentlist.ts#L444-L455 .... and I get an internal 404 - with the following in the javascript console:
My initial thought that |
Is it possible to reproduce the configuration without spaces in the directory names? It could be from there, maybe the URL is not formatted correctly (I think it should be |
Yeah - I wondered about that too - however I've just confirmed with a course |
I did some tests and I don't understand what's going on with the path, it look like it's partially formatted: On my side:
|
Hmmm.... OK - I need to do something creative to build a "simple" stand-alone docker image to test... then move that into my cluster, then slowly expand it to my full image. |
So @brichet has a PR to fix the "demo build" stuff.... and made it available via Binder - and binder does, indeed, provide a working image. However, the feedback link is still broken in that branch of code, as run on binder. I've tested a number of browser/OS combinations, and none of them are doing the
I can confirm that the feedback files are actually pulled, by the student, into the right directory ( |
Right, in the case of Binder (and maybe in your configuration as well), there may be a confusion on paths. The This feedback path come from server extension : nbgrader/nbgrader/exchange/default/list.py Lines 120 to 121 in c5bc509
On Binder, the same behavior append for classic Notebook extension, the link is not working as well. |
Thanks @perllaghu for all the testing. |
Once this PR is merged, this issue can be closed |
Dockerized notebooks running in a Kubernetes cluster
I'm testing NBgrader 0.8 for our service, and everything is working fine (including our external exchange service) - however the
View Feedback
link does not work.I've tried both the
pypi
version and the latestmaster
branch from gitlab.I've tried cutting my docker image right back to remove possible clashes with other libraries
I can confirm that
fetch_feedback
works, and the files are pulled down; and I can confirm that the link works when in theclassic
interface - same docker image, just started with a differentdefault_url
valueFrom what I can see....
In classic mode, the link is
..../tree/<feedback_path>
In lab mode, the link has no attributes, but has an event link that runs
and viewed from a javascript console, this calls
..../api/contents/<feedback_path>
to get to..../lab/tree/<feedback_path>
Can someone confirm that the
View Feedback
link works for them, in lab mode?The text was updated successfully, but these errors were encountered: