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

Feature Request: Support for JupyterLab #9

Open
DJuboor opened this issue Aug 23, 2018 · 12 comments
Open

Feature Request: Support for JupyterLab #9

DJuboor opened this issue Aug 23, 2018 · 12 comments

Comments

@DJuboor
Copy link

DJuboor commented Aug 23, 2018

No description provided.

@alexraju91
Copy link

Just found out how to do this.
Add the following lines to the make_worker_ami method in launch.py script.

sudo("pip3 --quiet install ipython jupyter jupyterlab ipykernel nbgrader")
sudo("jupyter serverextension enable --py jupyterlab --sys-prefix")

jupyterhub_config.py

c.Spawner.default_url = '/lab'
c.Spawner.cmd = ['jupyterhub-singleuser']

@farassadek
Copy link
Collaborator

Thank you Alex , this should make it work.
If you faced any issue please let me know

@h4gen
Copy link

h4gen commented Aug 25, 2018

Indeed the solution proposed by @alexforever86 provides a jupyterlab instance, but in my case the hub bar is vanished. Do you also encounter this problem?

@farassadek
Copy link
Collaborator

Hi
I used the lab with the older version of Jupyterhub and was working , It might be the new version ? I did not test it currently.
@alexforever86 did you test your solution with the current version of Jupyterhub ?

@h4gen
Copy link

h4gen commented Aug 25, 2018

I also tried this https://github.com/jupyterhub/jupyterlab-hub extension but it did not really get me further :/ In fact I got an 403 error when entering the lab. Maybe it has something todo with the page_config.json part. I have to admit I do not really understand what it is about or if this condition is fulfilled in your setup.

@farassadek
Copy link
Collaborator

Did you install jupyterlab-hub on the AMI that used to create the user instances ?

@h4gen
Copy link

h4gen commented Aug 25, 2018

Yes, exactly! I added these lines and the installation works without problems on the AMI:
sudo("pip3 --quiet install ipython jupyter jupyterlab ipykernel nbgrader")
sudo("curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -")
sudo("apt-get install -qq -y nodejs")
sudo("jupyter labextension install @jupyterlab/hub-extension")

@farassadek
Copy link
Collaborator

I cannot tell for definite what is going wrong since there are many parts need to come together. Therefore I will create a cluster myself and check jupyterlab with the latest version of jupyterhub.
Is this urgent or it can wait (I am a bit busy those days preparing the lectures for my devops class that starts in 10 days)? If it is urgent , can I have access to your cluster to check what is going on ?

@h4gen
Copy link

h4gen commented Aug 25, 2018

No its really not that urgent! I will try a bit more and also focus on some other problems in the meantime. Thank you a lot!

@farassadek
Copy link
Collaborator

I will leave this issue open until we find a resolution. If you are able to make the lab works please share it so I can added to the documentation.
Thanks and sorry if I was not of a help here

@alexraju91
Copy link

@h4gen I tried this with old version. Which cmd parameter did you use with this?

c.Spawner.cmd = ['jupyter-labhub']

or

c.Spawner.cmd = ['jupyterhub-singleuser']

@h4gen
Copy link

h4gen commented Aug 26, 2018

I tried both!
Your version leads to normal behaviour but also without the hub bar.
The
c.Spawner.cmd = ['jupyter-labhub']
configuration leads to no hub bar and no usability as a few dialugue windows appear:

Trying to start notebook:
image

image

Open a file from the file menue:

image

I guess it has to do with the page_config.json mentioned on the labhub page. I tried to inject

{ "hub_prefix": "/jupyter" }

but I think this is the wrong path and I don't really understand what would be correct in our case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants