简体   繁体   English

如何在 Google Colaboratory 中使用 IBM python 模块“pixiedust”?

[英]How to use IBM python module "pixiedust" in Google Colaboratory?

I was fascinated by the debugging and visualization library pixiedust developed by IBM and wanted to try it on gooogle colab.我对 IBM 开发的调试和可视化库 pixiedust 很着迷,想在 gooogle colab 上尝试一下。

I did following:我做了以下:

!pip install pixiedust

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

Display chart does not work显示图表不起作用

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

Debugging also does not work调试也不起作用

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.

Is it possible to use pixiedust in Google Colab or it is only availabe in IMB clouds?是否可以在 Google Colab 中使用 pixiedust 或只能在 IMB 云中使用?

maybe its a bit late for @astro123, but perhaps someone else is also looking as I was.也许@astro123 有点晚了,但也许其他人也和我一样。 So here its my solution.所以这是我的解决方案。 As noted in the pixiedust install guidelines , at https://pixiedust.github.io/pixiedust/install.html you have to check you have a jupyter kernel with pixiedust.正如pixiedust 安装指南中所述,在https://pixiedust.github.io/pixiedust/install.html,您必须检查您是否拥有带有 pixiedust 的 jupyter 内核。 In colab just run在 colab 中运行

!jupyter pixiedust list

As you can see it does not have by default a kernel with pixiedust, just so install it by正如你所看到的,默认情况下它没有带有 pixiedust 的内核,所以安装它

 `   !jupyter pixiedust install`

Then you can select on the main panel to run with the pixiedust kernel.然后你可以在主面板上选择运行pixiedust内核。 It should work now, but as collab is constantly evolving there is no a simple walkthrough.它现在应该可以工作了,但是随着 collab 的不断发展,没有简单的演练。

Regards问候

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Google Colaboratory Python Notebook 中使用 Flask? - How to use Flask in Google Colaboratory Python Notebook? 如何为 Google Colaboratory 安装 cx_oracle python 模块 - How to install cx_oracle python module for Google Colaboratory 如何在Python IDE中使用Google Colaboratory服务器作为python解释器? - How to use Google Colaboratory server as python interpreter in Python IDE? 如何在 Colaboratory Google 上使用 Selenium? - How to use Selenium on Colaboratory Google? 如何在 Google Colaboratory 中安装第三方模块 - How to install a third party module in Google Colaboratory 如何在Google合作实验室中以编程方式清除Python输出? - How to Clear Python Output Programatically in Google Colaboratory? 如何在 google colaboratory 中导入 python 文件? - How to import python files in google colaboratory? google colaboratory中的Python底图 - Python basemap in google colaboratory 如何将 csv 文件(并使用它)从谷歌驱动器上传到谷歌合作实验室 - How to upload csv file (and use it) from google drive into google colaboratory Google Colaboratory 中的 Python - 如何在 Google Drive 中创建、写入和读取文件 - Python in Google Colaboratory - How to create, write and read files in google drive
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM