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

Usability: Open browser, display url and shortcut to serving directory #136

Merged
merged 5 commits into from
May 14, 2019

Conversation

maartenbreddels
Copy link
Member

To make voila easier to use, we now open the browser (this is done analogous to the notebook as close as possible). To avoild opening the browser, pass --no-browser.

Also, analogous to the notebook, it now shows the url it is running at:

...
[Voila] Voila is running at:
http://localhost:8866/

This can be customized, using --Voila.custom_display_url='foobar' and --Voila.ip='' for instance, again similar to the classical notebook.

A third improvement is hosting directories. Previously this was done using --Voila.root_dir='/path/to' and no giving extra arguments. With this PR, if the passed argument is a directory, it wil set the root dir.

Future: I've left in some commented out code for the tokens and SSL, I don't think we should attack that now.

@timkpaine
Copy link
Member

This one has ssl, I think it's good to have otherwise why have a link at all if it won't work sometimes:#119

@SylvainCorlay
Copy link
Member

👍

@maartenbreddels
Copy link
Member Author

Cool, happy to put in the SSL. How do you configure voila to use https btw? Because we don't support the certfile yet, I didn't think support for it make sense.

@timkpaine
Copy link
Member

timkpaine commented May 14, 2019

We don't yet either but how much more do you have to do vs passing the settings through to tornado?

@maartenbreddels
Copy link
Member Author

I don't want to put too much in this PR. If we add in SSL we can simply uncomment https://github.com/QuantStack/voila/pull/136/files#diff-024301d95616622c19f49b8cd78d33c3R224 and have https as protocol.

@maartenbreddels
Copy link
Member Author

This closes #111

@SylvainCorlay SylvainCorlay merged commit 6bddf10 into voila-dashboards:master May 14, 2019
maartenbreddels added a commit to maartenbreddels/voila that referenced this pull request May 17, 2019
voila-dashboards#136)

* New: open browser on launch

* Show the url voila is running at

* New: shortcut to serving a directory when the cmd line argument is a directory

* flake8

* fix: help was None
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

Successfully merging this pull request may close these issues.

3 participants