IPython Notebook:在DSX中正确安装ipywidget之后,为什么不出现小部件? [英] IPython Notebook: Why do not appearing the widgets after installing correctly ipywidgets in DSX?

查看:279
本文介绍了IPython Notebook:在DSX中正确安装ipywidget之后,为什么不出现小部件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Jupiter笔记本DSX(IBM Datascience Experience框架)中安装ipywidgets之后,它不显示小部件,而只是显示静态内容或A Jupyter Widget

After installing ipywidgets in a Jupiter notebook, DSX (IBM Datascience Experience framework), it doesn't show the widget, just a static stuff or A Jupyter Widget

示例:

import ipywidgets as widgets

widgets.Dropdown(
    options = { 'One': 1, 'Two': 2, 'Three': 3 },
    value = 2,
    description = 'Number:',
)

结果:木星小工具

我已经基于 http://ipywidgets尝试了多个!jupyter nbextension enable --py widgetsnbextension --sys-prefix版本. readthedocs.io/en/latest/user_install.html ,但我仍然收到相同的错误消息:

I have tried several versions of !jupyter nbextension enable --py widgetsnbextension --sys-prefix based on http://ipywidgets.readthedocs.io/en/latest/user_install.html, but I still got the same error message:

PermissionError:[Errno 13]权限被拒绝:'/usr/local/src/conda3_runtime/4.1.1/etc/jupyter/nbconfig/notebook.json'

PermissionError: [Errno 13] Permission denied: '/usr/local/src/conda3_runtime/4.1.1/etc/jupyter/nbconfig/notebook.json'

或使用conda进行安装:

Or installing with conda:

CondaIOError:IO错误:在/usr/local/src/conda3_runtime/4.1.1中缺少写权限

CondaIOError: IO error: Missing write permissions in: /usr/local/src/conda3_runtime/4.1.1

推荐答案

用户无法在DSX上安装笔记本扩展,例如ipywidgets所需的widgetsnbextension. IBM控制笔记本服务器的配置,包括已启用笔记本扩展的列表.目前,widgetsnbextension未启用.因此,您不能在DSX中使用ipywidget.

Users cannot install notebook extensions, such as the widgetsnbextension needed by ipywidgets, on DSX. IBM controls the configuration of the notebook server, including the list of enabled notebook extensions. At the moment, widgetsnbextension is not enabled. Therefore, you cannot make use of ipywidgets in DSX.

您的问题类似于在IBM数据科学体验上启用nbextension .

这篇关于IPython Notebook:在DSX中正确安装ipywidget之后,为什么不出现小部件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆