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

Public Member Functions

 create (self)
 
 show (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()

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

◆ show()

show ( self)
inherited
Show the widget

Reimplemented in ProgressBarViewer.

Definition at line 31 of file viewer.py.

31 def show(self):
32 """
33 Show the widget
34 """
35 from IPython.core.display import display
36
37 a = self.create()
38 display(a)
39
40

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: