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

custom_widget on local runtime #4487

Closed
MehmetTopsakal opened this issue Apr 4, 2024 · 3 comments
Closed

custom_widget on local runtime #4487

MehmetTopsakal opened this issue Apr 4, 2024 · 3 comments

Comments

@MehmetTopsakal
Copy link

Describe the current behavior
A clear and concise explanation of what is currently happening.

%matplotlib widget
import matplotlib.pyplot as plt
plt.figure()

on "local runtime" is complaining and want me to do

from google.colab import output
output.enable_custom_widget_manager()

But I am on local environment. I have an old Linux OS (CentOS Stream 8) and
I cannot install google-colab

!pip install google-colab

Describe the expected behavior

from google.colab import output
output.enable_custom_widget_manager()

shouldn't be needed on local environment

What web browser you are using
Chrome on Linux OS

Additional context
Link to a minimal, public, self-contained notebook that reproduces this issue.

  • Share the file using your GitHub account using File > Save a copy as a GitHub Gist.
  • or Share Drive notebooks using the Share button then 'Get Shareable Link'.
@cperry-goog
Copy link

What instructions are you following for connecting to the local runtime? https://research.google.com/colaboratory/local-runtimes.html has instructions including our docker image which should address this?

@MehmetTopsakal
Copy link
Author

I am using "Option 2. Jupyter runtime"

I am also attaching a screenshot.

Thanks

image

@mayankmalik-colab
Copy link
Contributor

You would need to use option 1 from https://research.google.com/colaboratory/local-runtimes.html if you want to use google-colab package. We don't publish it on pypi anymore. So, you would get super old version if you do pip install it. I would recommend using option 1.

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

No branches or pull requests

3 participants