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

Custom HTML #5

Open
pbugnion opened this issue Oct 6, 2017 · 2 comments
Open

Custom HTML #5

pbugnion opened this issue Oct 6, 2017 · 2 comments

Comments

@pbugnion
Copy link
Owner

pbugnion commented Oct 6, 2017

You should be able to pass in your own custom HTML template.

(because everyone loves customisation!)

@DougRzz
Copy link

DougRzz commented Feb 1, 2018

This looks very useful. How can this feature be used in practise? For example, my served web application doesn't make use of the full width of the screen. It is more like the default jupyter notebook portrait view. Is it possible to modify this max width setting?

@DougRzz
Copy link

DougRzz commented Mar 12, 2018

To answer my previous comment and for those who are looking to change the default css style of their served dashboard, edit the css in the following file: \site-packages\ipywidgets_server\static\index.html and edit the .ipywidgets-server-contents-container, An example is shown below where I have increased the width of the output.

            .ipywidgets-server-contents-container {
                height: 95vh;
                padding-top: 5vh;
                width:90%;
                margin-left:5%;
                margin-right:auto;                  
                
            }

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