在Spyder的控制台中记录输入和输出 [英] Logging input and output in Spyder's console

查看:2030
本文介绍了在Spyder的控制台中记录输入和输出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过Stata学习了数据操作和分析,并使用log命令记录了所有写入的命令和生成的输出.这样做可以重现我的发现,检查以前的结果,并以pdf或txt格式与他人共享.在Python中使用什么?如果我使用Python Jupyter Notebook或Spyder有区别吗?

I learnt data manipulation and analysis through Stata and I used the log command to record all the commands written and the output generated. Doing so I could reproduce my findings, check previous results and share it with others in pdf or txt. What to use with Python? Is there a difference if I use a Python Jupyter Notebook or Spyder?

推荐答案

执行所需操作的方法是使用%logstart命令,如下所述:

The way to do what you want is by using the %logstart command, as described here:

是否记录IPython输出?

这篇关于在Spyder的控制台中记录输入和输出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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