-
Notifications
You must be signed in to change notification settings - Fork 504
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
[WIP] Voila as an ExtensionApp #270
Conversation
388121a
to
017ae58
Compare
To test this out,
Start Voila by either 1) running directly:
or loading as a server extension
|
Also, I've opened jupyter-server/jupyter_server#59 to simplify how extensions configuration gets passed to extension handlers. This should help simplify some of the changes here. Once that PR is merged in jupyter_server, I'll update this PR. |
checking this now |
Thanks, @timkpaine. I think this will require a pretty significant refactor of Voila's tests. I'm happy to work on this if you can confirm that the |
@Zsailer I really would like to use my jupyterlab |
Definitely—though, you may have to wait for JupyterLab to adopt |
I don't need full compatibility, just the bare minimum |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent work! I like seeing all the red. Should this now work with the latest jupyter-server release?
@maartenbreddels Great! Glad you like it! I just got back from holiday, so I'm catching up on emails+Github threads. I'm hoping to rebase this PR later this week. It should work with the latest jupyter_server, but I'll verify and ping you again soon. |
5358a80
to
caa2b58
Compare
Ok, once jupyter-server/jupyter_server#70 is merged, this should be working (with standalone mode). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Impressive work!
The test do not run on the CI because of the flake8 issues, it may be useful to run the following test locally:
py.test tests/app/execute_test.py
I also noticed that if I run jupyter-voila notebooks/basics.ipynb
, it will open the wrong url (http://localhost:8891/notebooks/basics.ipynb?token=...)
The tests need some refactoring after these significant changes. I started working on that last week but didn't quite finish. I'll try to update the tests over the next day or two. |
Good catch! Looking into this issue now. |
I believe this would also be relevant? jupyter-server/jupyter_server#80 |
@Zsailer anything I can do to help? |
fa0f1ee
to
cb6c689
Compare
Closing in favor of #492. Thanks, @maartenbreddels! |
I went ahead and started refactoring Voila to use the
ExtensionApp
in jupyter_server. It greatly simplifies the main application.Using this API, Voila can be initialized, configured and launched from the command line, and you can generate configuration files using the
--generate-config
flag.It can also be loaded as a Jupyter server extension, allowing you to serve Voila side-by-side with other client applications running on one server.
One thing to note is that all static files are now served behind the url namespace
static/voila/
(this is automatically set up byExtensionApp
).This should be working. Let me know if you have issues with testing it out.
@SylvainCorlay @maartenbreddels