-
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
formgrader - manage assignments - problems (with jupyterhub) #1794
Comments
Additional finding, if I do start the formgrader within my personal space an not via the service this happens: And just found this: #1660 |
Sadly this #1660 does not fix the issue. I still cannot click the link. |
The combination of Jupyterhub 4.0 and nbgrader 0.8.3 leads to the same situation. I still cannot access a notebook of an assignment by clicking on the assignment name. In both cases this is due to the #href that is missing within the service page of managing assignments. |
The link is created here: https://github.com/jupyter/nbgrader/blob/v0.8.3/nbgrader/server_extensions/formgrader/static/js/manage_assignments.js#L105-L116 /* Append link with :
* - href if this is a Notebook<7 environment
* - click listener to send message to iframe parent if this is Jupyter Lab environment
*/
this.$name.append($("<a/>")
.text(name)
.attr("target", self.is_lab ? undefined : "_blank")
.attr("href", self.is_lab ? undefined : base_url + "/tree/" + url_prefix + "/" + this.model.get("source_path"))
.click(self.is_lab ? function(){
window.parent.postMessage(jlab_go_to_path(url_prefix + "/" + this_assignment.model.get("source_path")), '*');
} : undefined)
); This looks pretty weird. Why does the link needs a click event when |
Does anybody know which code in JupyterLab is supposed to handle the messages sent via |
It was a workaround to handle notebook<7 and jupyterlab. |
@brichet I don't understand - the code is the same even in the |
@lahwaacz I was only answering to the question about the |
@brichet I'm confused about what is the intended behavior here. I don't see any |
The widgets for jupyterlab are in typescript, in the (I answered from a cell phone, it's not easy to provide links.) |
I think that I finally got it. There are actually two cases (with jupyterlab 4 and jupyterhub 4):
|
Could anyone please verify, on the page of the formgrader and there with manage assignments:
It really is possible to click on the name of an assignment or on the preview/ magnifiying glass and something happens if everything is installed correctly.
As I am not able to click these two although it is possible for generate or edit and I assume it is due to a installation/configuration problem (that I just do not understand).
nbgrader --0.8.2
jupyterhub --2.3.1
jupyter notebook --6.5.4
Expected behavior
A notebook opens upon clicking onto the name of an assignment. (formgrader page and there managing assignments)
Actual behavior
Cannot click on the name.
Steps to reproduce the behavior
Have JupyterHub with nbgrader and multiple classes 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: