Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot run "import ipywidgets as widgets" #1

Closed
oathaha opened this issue Mar 16, 2021 · 9 comments
Closed

cannot run "import ipywidgets as widgets" #1

oathaha opened this issue Mar 16, 2021 · 9 comments

Comments

@oathaha
Copy link
Collaborator

oathaha commented Mar 16, 2021

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
Copy link
Collaborator

May I know which IDE are you using?

@oathaha
Copy link
Collaborator Author

oathaha commented Mar 16, 2021

May I know which IDE are you using?

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

@MichaelFu1998-create
Copy link
Collaborator

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
Copy link
Collaborator Author

oathaha commented Mar 16, 2021

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
Copy link
Collaborator

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

@oathaha
Copy link
Collaborator Author

oathaha commented Mar 16, 2021

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
Copy link
Collaborator

Hello, did you manage to solve this problem?

@oathaha
Copy link
Collaborator Author

oathaha commented Mar 27, 2021

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
Copy link
Collaborator

Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants