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

Add docs for deploying to Binder #377

Merged
merged 2 commits into from
Oct 8, 2019
Merged

Conversation

jtpio
Copy link
Member

@jtpio jtpio commented Sep 3, 2019

@Alexboiboi
Copy link

Hi, there
I don't know if it is the right place to ask this but I was wondering if there is a way to give the dark theme when deploying to mybinder?

?urlpath=voila/render/mynotebook.ipynb renders the notebook but how to assign options to it?

Also, is it possible to launch voila from a python script execution? (side question)

@jtpio
Copy link
Member Author

jtpio commented Sep 26, 2019

@Alexboiboi the theme can be specified by creating a jupyter_config.json file with the following content:

{
    "VoilaConfiguration": {
        "theme": "dark"
    }
}

Other options can be specified as well. There is an example in the voila-demo repo if you want to check it out.

I think it would make sense to add that to the "Deploy to Binder" docs (or point to the voila-demo repo as reference).

Also, is it possible to launch voila from a python script execution? (side question)

To use on mybinder? Otherwise yes it's possible to do something like this:

from voila.app import Voila
v = Voila()
v.initialize(['.', '--no-browser'])
v.start()

@Alexboiboi
Copy link

@jtpio Thanks a lot for your precise answer, this was very helpful!

@jtpio
Copy link
Member Author

jtpio commented Sep 30, 2019

Added a section about the jupyter_config.json file.

@jtpio
Copy link
Member Author

jtpio commented Oct 2, 2019

This one is ready to go.

@martinRenou
Copy link
Member

Ok for me!

@jtpio
Copy link
Member Author

jtpio commented Oct 8, 2019

Cool, let's get that in then.

@jtpio jtpio merged commit 8634fdb into voila-dashboards:master Oct 8, 2019
@jtpio jtpio deleted the docs-binder branch October 8, 2019 13:35
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.

Document deploying to Binder
3 participants