[英]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.
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.
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.