SelfExplainML / PiML-Toolbox

PiML (Python Interpretable Machine Learning) toolbox for model development & diagnostics
https://selfexplainml.github.io/PiML-Toolbox
Apache License 2.0
931 stars 111 forks source link

[Request] Run PiML outside of notebooks. #55

Open Mavrepis opened 3 months ago

Mavrepis commented 3 months ago

Hey there! I am trying to use PiML in a python script integrating it into a streamlit app. However when I tried to initiate an object of the Experiment class I got the following error:

File "piml/api.py", line 106, in piml.api.Experiment.__init__ File "piml/dashboard/utils.py", line 49, in piml.dashboard.utils.is_jupyter_notebook AttributeError: 'NoneType' object has no attribute 'cmdline'

From this I understand we are not meant to execute this outside of notebooks. Is there a workaround? Do you plan to change this in the future?