python - 如何在 Google Colaboratory 中使用 IBM python 模块 "pixiedust"?

标签 python google-colaboratory pixiedust

我对 IBM 开发的调试和可视化库 pixiedust 很着迷,想在 gooogle colab 上试用一下。

我做了以下操作:

!pip install pixiedust

# matplotlib, seaborn, jinja2 are already installed in gcolab.

显示图表不工作

import pixiedust
df = pixiedust.sampleData() # this shows the dataframe
display(df)  # This does not do anything.

调试也不行

import pixiedust

# Next cell
%%pixie_debugger
import random
def find_max (values):
    max = 0
    for val in values:
        if val > max:
            max = val
    return max
find_max(random.sample(range(100), 10))

# This gives nothing.

是否可以在 Google Colab 中使用 pixiedust 还是只能在 IMB 云中使用?

最佳答案

@astro123 可能有点晚了,但也许其他人也和我一样。所以这是我的解决方案。 如 pixiedust install guidelines 中所述, 在 https://pixiedust.github.io/pixiedust/install.html 你必须检查你有一个带有 pixiedust 的 jupyter 内核。在 colab 中运行

!jupyter pixiedust 列表

如您所见,默认情况下它没有带有 pixiedust 的内核,只需安装它

 `   !jupyter pixiedust install`

然后您可以在主面板上选择使用 pixiedust 内核运行。 它现在应该可以工作,但由于协作不断发展,因此没有简单的演练。

问候

关于python - 如何在 Google Colaboratory 中使用 IBM python 模块 "pixiedust"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56956074/

相关文章:

python - curve_fit、python和excel之间的幂律回归问题

python - 在 Python 中运行 Git clone 命令

python - 如何对具有重复列名的行进行切片并按顺序堆叠这些行

python - 如何在 Google Colab 中下载 Pandas Dataframe?

dsx - 如何使用 scala 2.11 中的 "display"函数和 dsx 中的 Spark 2.0 笔记本

python - 从 quandl.com 下载数据并想知道我如何在请求中包含我的 API key ?

Python-处理多个目录中的文件

fonts - 如何增加 Google colab 单元格输出的字体大小?

python - Pixiedust 未在 Jupyter 实验室中显示