使用 Google Colab 时如何访问 H2O Flow

问题描述

有谁知道在使用 Google Colab 时如何访问 H2O Flow?

我的代码如下:

!pip install H2O
import h2o
h2o.init(bind_to_localhost=False,log_dir="./")
from google.colab.output import eval_js
print(eval_js("google.colab.kernel.proxyPort(54321)"))

代码显示以下输出

Checking whether there is an H2O instance running at http://localhost:54321 ..... not found.
Attempting to start a local H2O server...
  Java Version: openjdk version "11.0.10" 2021-01-19; OpenJDK Runtime Environment (build 11.0.10+9-Ubuntu-0ubuntu1.18.04); OpenJDK 64-Bit Server VM (build 11.0.10+9-Ubuntu-0ubuntu1.18.04,mixed mode,sharing)
  Starting server from /usr/local/lib/python3.7/dist-packages/h2o/backend/bin/h2o.jar
  Ice root: /tmp/tmp5mullu7m
  JVM stdout: /tmp/tmp5mullu7m/h2o_unkNownUser_started_from_python.out
  JVM stderr: /tmp/tmp5mullu7m/h2o_unkNownUser_started_from_python.err
  Server is running at http://127.0.0.1:54321
Connecting to H2O server at http://127.0.0.1:54321 ... successful.

H2O_cluster_uptime:     02 secs
H2O_cluster_timezone:   Etc/UTC
H2O_data_parsing_timezone:  UTC
H2O_cluster_version:    3.32.1.1
H2O_cluster_version_age:    3 days
H2O_cluster_name:   H2O_from_python_unkNownUser_0ttq4b
H2O_cluster_total_nodes:    1
H2O_cluster_free_memory:    3.180 Gb
H2O_cluster_total_cores:    2
H2O_cluster_allowed_cores:  2
H2O_cluster_status:     accepting new members,healthy
H2O_connection_url:     http://127.0.0.1:54321
H2O_connection_proxy:   {"http": null,"https": null}
H2O_internal_security:  False
H2O_API_Extensions:     Amazon S3,XGBoost,Algos,AutoML,Core V3,TargetEncoder,Core V4
Python_version:     3.7.10 final

https://0258qGrdz6tx-496ff2e9c6d22116-54321-colab.googleusercontent.com/

并点击 https://0258qgrdz6tx-496ff2e9c6d22116-54321-colab.googleusercontent.com/ 会返回 HTTP 500 错误显示“未实现”消息,而不是 H2O Flow(Web UI)页面

看来消息是由 Persist 类返回的。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...