简体   繁体   English

显示一个实时的numpy数组

[英]Display a live numpy array

In APL, you can trivially bring up a window that shows the contents of a variable whilst your program is running and watch it update live. 在APL中,您可以简单地打开一个窗口,该窗口在程序运行时显示变量的内容,并观看其实时更新。

This is illustrated by the classic Game of Life video at 5 minutes in. 5分钟的经典《生命游戏》视频说明了这一点。

Is there any similar 'inspector' for Python with support for numpy arrays so I can see step through my array code and see what its doing live? Python是否有类似的“检查器”,支持numpy数组,所以我可以逐步查看数组代码并实时查看其功能吗?

(Ideally using TK or something portable) (理想情况下使用TK或便携式产品)

Have you looked at the python debugger? 您是否看过python调试器? ( pdb ) pdb

It's not graphical but it is completely portable. 它不是图形的,而是完全可移植的。 Depending what IDE you're using, there might be a visual debugger built in. 根据您使用的IDE,可能会内置一个可视化调试器。

(original poster) (原始海报)

在此处输入图片说明

I could not find one, so I made one. 我找不到一个,所以我做了一个。 You can get it here . 你可以在这里得到

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM