python - jupyter notebook Linux ipywidgets不工作
问题描述
import ipywidgets as widgets
from IPython.display import display
w = widgets.Dropdown(
options={'Pen': 7732, 'Pencil': 102, 'Pad': 33331},
description='Item:',
)
display(w)
#w.value
结果:Dropdown(description='Item:', options={'Pen': 7732, 'Pencil': 102, 'Pad': 33331}, value=7732)
这不是下拉
嗨,我在虚拟环境中的 linux jupyter notebook 中工作
我已经尝试从这里 Jupyter 小部件没有出现在笔记本中
和交互式 Jupyter 小部件在 Jupyter Lab 中不起作用
任何想法?
更新我在其他 CELL 中添加的其他库:
from elasticsearch import Elasticsearch
import json
import pandas as pd
from pandas.io.json import json_normalize
import matplotlib.pyplot as plt
%matplotlib inline
解决方案
推荐阅读
- python - 如何通过 Python 使用批量转录 API
- javascript - 使用 onclick 时,Electron 似乎找不到我的功能
- javascript - 画外音未在行选择中读取表格行的 aria-label 的内容
- javascript - 如何更改pdf的名称?
- perl - 解析命令行参数而不忽略反斜杠
- python - 如何在python的单个列表中添加多个值?
- azure - Azure 通知中心 - 从 GCM 迁移到 FCM
- android - React Native Scroll View 设备方向横向
- java - 如何从 C# 统一代码中调用服务类中的方法
- c# - 从动作中获取回调值