deephaven / deephaven-ipywidgets

Deephaven Community IPython Widget Library
BSD 3-Clause "New" or "Revised" License
4 stars 4 forks source link

iframe is now loaded when using google colab #9

Closed jnumainville closed 1 year ago

jnumainville commented 1 year ago

Part of fix for #3

import os from google.colab.output import eval_js os.environ["JAVA_HOME"] = "/usr/lib/jvm/java-11-openjdk-amd64"

from google.colab import drive drive.mount('/content/drive')

!pip install --upgrade pip setuptools wheel !pip install deephaven-core deephaven-server !pip install '/content/drive/MyDrive/deephaven_ipywidgets-0.2.0-py2.py3-none-any.whl'

import deephaven_server from deephaven_server import Server import portpicker from google.colab.output import eval_js

dh_port = portpicker.pick_unused_port() s = Server(port=dh_port, jvm_args=["-Xmx4g", "-Dhttp.requireHttp2=false"], dh_args={'http.requireHttp2': False}) s.start()

from google.colab import output output.enable_custom_widget_manager()

from deephaven import empty_table t = empty_table(10).update("x=i")

from deephaven_ipywidgets import DeephavenWidget DeephavenWidget(t)