iPython:类似Manipulate的命令 [英] iPython: Manipulate-like command

查看:150
本文介绍了iPython:类似Manipulate的命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Wolfram Mathematica中,我可以使用 Manipulate [] 命令以交互方式修改参数的值。

In Wolfram Mathematica, I can interactively modify the value of a parameter by using the Manipulate[] command.

例如操纵[n,{n,1,20} ]
显示一个滑块,通过该滑块可以改变 n 的值。

有没有简单的方法(例如魔术或装饰者,喜欢在SAGE中)在IPython笔记本中实现相同的结果?

Is there any simple way (i.e. something like a magic or a decorator, like in SAGE) to achieve the same result in the IPython notebook?

推荐答案

更新

这是在IPython 2.0(2014年4月1日发布)中添加的,它被称为交互式小部件,适用于网络笔记本。

Update
This was added in IPython 2.0 (released Apr 1, 2014), it's called Interactive Widgets and works in web notebooks.

原始答案

这是正在进行的工作或2.0(发布12月的东西)看看YouTube上的IPython-dev会议以了解进展情况。 上次会议从21月28日28分钟开始有John的小部件演示那么与Brian交互

Original answer
This is ongoing work for 2.0 (release December something-ish) Have a look at the IPython-dev meeting on YouTube to see progress. The last meeting from oct 21 at 28min-ish has a widget demo by John then interact by Brian.

这篇关于iPython:类似Manipulate的命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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