man-group / man-group/notebooker

Enable me to explore on Jupyterhub behind reverse proxy

Open
#119 1 comment 0 reactions 1 assignee Claimed by @jonbannister View on GitHub
bug question
Dominant language
Python
Stars
939
Forks
95
Avg merge
9d 1h
Merged PRs (30d)
1

Description

I want to try out notebooker. I don't have access to python on my laptop for enterprise reasons. I can work inside jupyterhub.

I run

```
mkdir -p /home/jovyan/shared/.analytics-workspace/.mongodb
conda install -y -c anaconda mongodb=6.0.2
pip install notebooker;python -m ipykernel install --user --name=notebooker_kernel
````

```bash
mongod --dbpath /home/jovyan/shared/.analytics-workspace/.mongodb
```

```bash
notebooker-cli --mongo-host localhost:27017 start-webapp --port 11828
```

Both mongodb and notebooker start up successfully.

The [jupyter-server-proxy](https://github.com/jupyterhub/jupyter-server-proxy) is installed. So I would expect to be able to try out notebooker ui at

## https://domain/namespace/user/user-name/proxy/11828

![image](https://user-images.githubusercontent.com/42288570/195331643-66fcc139-25b6-4b97-a462-4a57c8c92b11.png)

or

## https://domain/namespace/user/user-name/proxy/11828/

![image](https://user-images.githubusercontent.com/42288570/195331692-3bd1abc9-02b1-4e9f-a407-6c6e1adb1dec.png)

But as you can see I cannot.

The issue is that all *assets* are expected to be found at the root `/`.

![image](https://user-images.githubusercontent.com/42288570/195332025-3c48583b-7c65-47ac-a378-97108233fb6b.png)

But they should not be. Either they should be found at some nested path that I should be able to specify via a `--prefix` flag. Or they should be referenced as `./static` I believe.

## Additional Context

I often run [Panel](https://panel.holoviz.org/index.html) succesfully from the terminal in my jupyter hub. Panel enables me to set a `--prefix` that is used to point to the static assets.

![image](https://user-images.githubusercontent.com/42288570/195332607-d23220a5-7f03-4328-8950-831fed556cfe.png)

Its the same for other data app frameworks. For example streamlit.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.