|
str | css_string |
| The css string for styling the notebook.
|
|
The css string for styling the notebook.
Definition at line 13 of file viewer.py.
◆ create()
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 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()
39
40
◆ css_string
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:
- framework/scripts/hep_ipython_tools/ipython_handler_basf2/viewer.py