有没有人尝试过在谷歌Colab中使用dataprep.eda?当使用我本地的jupyiter笔记本时,它工作得很好,但是当试图在colab中使用这个包时,这个数字就不会出现了。我有点迷路了。
发布于 2020-07-07 04:06:58
github中存在一个未解决的问题
https://github.com/sfu-db/dataprep/issues/102#issuecomment-654321665
发布于 2020-07-07 13:01:43
我已经解决了这个问题。只需运行此代码,任何绘图都将在Colab中正确显示
def _report_repr_html_(self):
from bokeh.io.notebook import load_notebook
from bokeh.embed.notebook import notebook_content
load_notebook(hide_banner=True)
(script, div, cell_doc) = notebook_content(self.to_render)
return f'{div}<script>{script}</script>'
from dataprep.eda.report import Report
Report._repr_html_ = _report_repr_html_发布于 2021-01-11 16:54:02
它现在只需两个步骤即可工作:
!pip install dataprep
# Restart the runtime https://stackoverflow.com/questions/62762389
复制相似问题