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

Setup issues #1

Open
jpc opened this issue Dec 14, 2022 · 2 comments
Open

Setup issues #1

jpc opened this issue Dec 14, 2022 · 2 comments

Comments

@jpc
Copy link

jpc commented Dec 14, 2022

Hi,

This sounds like something I could use to run Jupyter notebooks inside an Android app for testing and benchmarking. But I had trouble getting it to work:

  1. pip install https://github.com/davidbrochart/jupyter_server/archive/kernels_extension.zip this does not work. It seems to try to install a jupyter_server that's a few year old? Could this work with upstream jupyter_server?
  2. It seems the dependency list is missing pip install jupyter_server_kernels
  3. From the README I am not sure which part is the "remote part" which only runs the kernels. My guess would be that the fps_uvicorn part runs the kernels but the comment on the bottom ("Kernels should now be served from http://127.0.0.1:8000/.") seems to suggest otherwise?

Thanks for all your work modularizing and updating the Jupyter core stack.

@davidbrochart
Copy link
Owner

Hi @jpc,

  1. pip install https://github.com/davidbrochart/jupyter_server/archive/kernels_extension.zip this does not work. It seems to try to install a jupyter_server that's a few year old? Could this work with upstream jupyter_server?

I just pushed a commit that should fix it.

2. It seems the dependency list is missing pip install jupyter_server_kernels

Actually it is jupyter-server that will require jupyter-server-kernels, see jupyter-server/jupyter_server#1106 (comment).

3. From the README I am not sure which part is the "remote part" which only runs the kernels. My guess would be that the fps_uvicorn part runs the kernels but the comment on the bottom ("Kernels should now be served from http://127.0.0.1:8000/.") seems to suggest otherwise?

No, you are right, fps_uvicorn runs the kernels, and it's running at http://127.0.0.1:8000. JupyterLab is running at http://127.0.0.1:8888.
Both are actually running locally, and we are imagining that fps_uvicorn runs on another machine.

@jpc
Copy link
Author

jpc commented Dec 15, 2022

  1. Thanks. I initially missed that it's referencing the kernels_extension branch.
  2. 👍 works now.
  3. I've drafted a quick pull request that hopefully would make it a bit clearer in the README.

I got it to start on Chaquopy (Python distro for Android but I am getting 404s everywhere.

12-15 08:17:47.501 15683 15712 W python.stderr: [I 2022-12-15 08:17:47 uvicorn.access] 192.168.44.135:49197 - "GET /api/sessions HTTP/1.1" 404 Not Found
12-15 08:17:50.491 15683 15712 W python.stderr: [I 2022-12-15 08:17:50 uvicorn.access] 192.168.44.135:49198 - "GET /api/sessions HTTP/1.1" 404 Not Found
12-15 08:18:01.866 15683 15712 W python.stderr: [I 2022-12-15 08:18:01 uvicorn.access] 192.168.44.135:49200 - "POST /api/sessions HTTP/1.1" 404 Not Found

Unfortunately I don't have enough time to debug this properly right now.

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

2 participants