ipywidgets_server icon indicating copy to clipboard operation
ipywidgets_server copied to clipboard

Custom HTML

Open pbugnion opened this issue 7 years ago • 2 comments

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

(because everyone loves customisation!)

pbugnion avatar Oct 06 '17 07:10 pbugnion

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 avatar Feb 01 '18 21:02 DougRzz

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;                  
                
            }

DougRzz avatar Mar 12 '18 11:03 DougRzz