我对 IBM 开发的调试和可视化库 pixiedust 很着迷,想在 google 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 云中使用?