【问题标题】:Input using a submit button in Jupyter notebook using widget使用小部件在 Jupyter 笔记本中使用提交按钮进行输入
【发布时间】:2019-06-10 10:33:46
【问题描述】:

如何使用笔记本中的提交按钮进行输入?

我想显示一个输入下拉选择器并仅在用户点击提交按钮时存储输入。

类似的东西 -

谢谢。

【问题讨论】:

    标签: widget jupyter-notebook ipython


    【解决方案1】:

    您需要将选择的值存储在按钮单击操作中。 这涉及任何方法中的几个步骤。如果您使用jp_proxy_widget 它可能看起来像这样:

    见:https://github.com/AaronWatters/jp_proxy_widget

    https://learn.jquery.com/using-jquery-core/faq/how-do-i-get-the-text-value-of-a-selected-option/

    【讨论】:

      猜你喜欢
      • 2019-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-02-05
      • 1970-01-01
      相关资源
      最近更新 更多