隐藏Spyder中的runfile()命令 [英] hidding the runfile() command in Spyder

查看:213
本文介绍了隐藏Spyder中的runfile()命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种隐藏" runfile()命令的方法,以便它不会在IPython控制台上显示?当文件的路径很长时,它会变得很烦人,因为它会两次显示该路径:

Is there a way to 'hide' the runfile() command so that it doesn't get displayed on the IPython console? It can get really annoying when the file has a long path since it displays the path twice:

runfile('C:/Users/One/Desktop/Training/Week1/Files/file1.py',wdir='C:/Users/One/Desktop/Training/Week1/Files/file1.py')

推荐答案

(此处为 Spyder维护程序),这在我们当前的稳定版本(Spyder 4 )中是不可能的,抱歉.

(Spyder maintainer here) This is not possible in our current stable version (Spyder 4), sorry.

这篇关于隐藏Spyder中的runfile()命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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