Belle II Software development
StylingWidget Class Reference
Inheritance diagram for StylingWidget:
IPythonWidget StylingWidget

Public Member Functions

def create (self)
 

Static Public Attributes

str css_string
 The css string for styling the notebook.
 

Detailed Description

The css string for styling the notebook.

Definition at line 41 of file viewer.py.

Member Function Documentation

◆ create()

def create (   self)
Create the styling widget.

Reimplemented from IPythonWidget.

Definition at line 59 of file viewer.py.

59 def create(self):
60 """Create the styling widget."""
61 from IPython.core.display import HTML
62 html = HTML(f"<style>\n{self.css_string}\n</style>")
63 return html
64
65

Member Data Documentation

◆ css_string

str css_string
static
Initial value:
= """
#notebook-container {
width: 90%;
}
#menubar-container {
width: 90%;
}
#header-container {
width: 90%;
}
"""

The css string for styling the notebook.

Definition at line 45 of file viewer.py.


The documentation for this class was generated from the following file: