How to use ubapyplot with JupyterLab notebooks?
I tried to follow the Simple Line Chart example
https://oc000015999822.usercontent.opencode.de/ubapyplot/#simple-line-chart-7-1
If I run the code from a script file it works as expected.
However, if I try to use it from within a JupyterLab notebook, the line
### instantiate an UBA_plot-class object
plot_obj = UBA_Plot.UBA_Plot(height_child='45%', width_child='80%')
causes an error
...
File C:\python_env\App\WinPython\python-3.11.1.amd64\Lib\site-packages\matplotlib\offsetbox.py:399, in OffsetBox.get_window_extent(self, renderer)
396 def get_window_extent(self, renderer=None):
397 # docstring inherited
398 if renderer is None:
--> 399 renderer = self.figure._get_renderer()
400 bbox = self.get_bbox(renderer)
401 try: # Some subclasses redefine get_offset to take no args.
AttributeError: 'NoneType' object has no attribute '_get_renderer'
=> Does ubapyplot support JupyterLab notebooks?
=> If so, could you please document how to fix this issue? (I searched for Jupyter in the documentation and could not find information about it.)
Edited by Stefan Eidelloth