awsm-research / PyExplainer

PyExplainer: A Local Rule-Based Model-Agnostic Technique (Explainable AI)
MIT License
29 stars 9 forks source link

cannot run "import ipywidgets as widgets" #1

Closed oathaha closed 3 years ago

oathaha commented 3 years ago

When I import pyexplainer_pyexplainer, there is an error as shown below

image

I tried using pip install ipywidgets and conda install ipywidgets but both methods cannot fix the issue.

Do you have any idea to solve this issue?

MichaelFu1998-create commented 3 years ago

May I know which IDE are you using?

oathaha commented 3 years ago

May I know which IDE are you using?

I use jupyter notebook to run the code on conda environment.

MichaelFu1998-create commented 3 years ago

When I import pyexplainer_pyexplainer, there is an error as shown below

image

I tried using pip install ipywidgets and conda install ipywidgets but both methods cannot fix the issue.

Do you have any idea to solve this issue?

Did you run pip install right in your working Jupyter Notebook cell? For example, !pip install ipywidgets

I guess the ipywidgets was not installed in the python that you are using.

oathaha commented 3 years ago

Did you run pip install right in your working Jupyter Notebook cell?

I didn't do that. I ran pip install ipywidgets in terminal that I activate my conda environment.

MichaelFu1998-create commented 3 years ago

Could you try running !pip install in your notebook? If it doesn't solve, let me know.

oathaha commented 3 years ago

I forgot to tell you that I use remote server to run code (which means that I don't have 100% permission). So I got this error when trying your solution

image

MichaelFu1998-create commented 3 years ago

Hello, did you manage to solve this problem?

oathaha commented 3 years ago

I just comment the code that uses the library because I don't use it in my experiment.

However, I think I may have problem with my conda environment and jupyter notebook, which I think I found solution.

MichaelFu1998-create commented 3 years ago

Thanks for the update!