You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One caveat is that we have to add the following code block when displaying a map. I am trying to embed this code block into the Map class so that users don't have to add this long string of code manually.
from IPython.display import Javascript
display(Javascript('''
google.colab.widgets.installCustomManager('https://ssl.gstatic.com/colaboratory-static/widgets/colab-cdn-widget-manager/6a14374f468a145a/manager.min.js');
'''))
Colab will be iterating on the snippet required and will make it a bit easier to use (including making it one-time opt-in for the notebook).
This was published in googlecolab/colabtools#498 (comment) to allow collecting feedback on how well the API worked for various widget packages before we attempt to call it stable.
Exciting news! Goolge Colab now supports custom widgets like ipyleaflet (googlecolab/colabtools#498 (comment))
One caveat is that we have to add the following code block when displaying a map. I am trying to embed this code block into the
Map
class so that users don't have to add this long string of code manually.Based on the ipython repr_mimebundle() function, I tried to add some code to this function, but it has no effect. Any advice? @martinRenou @davidbrochart @SylvainCorlay @jasongrout @maartenbreddels @blois
Relevant issues:
A Colab example: https://colab.research.google.com/drive/1DIjJP4HrbsmGsDluKYKSQceFWnhj2wPz
The text was updated successfully, but these errors were encountered: