eli5输出中的Databricks pyspark IPython.core.display.HTML错误

时间:2018-10-08 10:34:28

标签: python html pyspark xgboost databricks

使用eli5的XGBoost以HTML格式显示预测打印结果,该格式在Databricks中的pyspark中不起作用。

displayHTML(file_name)出现错误:

  

Py4JException:Python代理引发了一个异常。返回消息:x

我也安装了ipython库。 即使对于这个简单的查询,它也会产生错误。

from IPython.display import display, HTML
from IPython.core.display import display, HTML

display(HTML('<h1>Hello, world!</h1>'))
print("Here's a link:")
display(HTML("<a href='http://www.google.com' target='_blank'>www.google.com</a>"))
print("some more printed text ...")
display(HTML('<p>Paragraph text here ...</p>'))

我得到的输出/错误是:

<IPython.core.display.HTML at 0x7f63e0c5d5f8>
Here's a link:
<IPython.core.display.HTML at 0x7f6408fbe358>
some more printed text ...
<IPython.core.display.HTML at 0x7f6408fbe358>

0 个答案:

没有答案