spyder:编辑一直在 python 中执行,而不是 IPython
spyder: edit keeps executing in python, not IPython
我正在使用 spyder 3 运行 python 并且我不确定如何让我的会话进入 运行 IPython.
我启动 spyder,然后单击控制台,然后选择 "Open an IPython console." 然后我在右下象限中看到有 Python 和 IPython 控制台。我确保选择了 IPython 控制台。
然后我在编辑器中 运行 一些代码:
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randn(10, 4))
print(df)
但是,当我按 F5 时,我在 return 中得到了这个:
NOTE: The Python console is going to be REMOVED in Spyder 3.2. Please start to migrate your work to the IPython console instead.
0 1 2 3
0 0.383901 -1.021537 0.721708 -0.389721
1 -0.779638 0.010816 0.668723 -1.007539
2 -0.918172 1.100903 0.437585 -0.750007
3 0.822504 -2.546719 0.069220 -1.096228
4 1.040603 0.769918 -1.608101 0.279524
5 0.156436 0.518157 -1.278696 0.413262
6 0.211114 0.194401 -0.323856 0.988171
7 0.436519 0.611610 -1.027762 1.546440
8 -0.493041 -0.195899 0.616378 -0.135764
9 -0.355428 0.896633 0.535350 0.189172
我想在 IPython 中 运行 并且不确定我做错了什么或缺少一些基本的东西。关于如何让它在 IPython 中执行的任何想法?
仅供参考,我 运行ning windows 10 并通过 anaconda 安装了 spyder。
谢谢。
在 Win7 上通过 anaconda 安装了 spyder。无法重现此案例。
您想知道的事情:-
他们正在从 spyder 3.2 中删除 Python 个控制台,并且将只存在 IPython 个控制台。
目前在 spyder 中没有选项可以 运行 专用 IPython 控制台中的代码。这将在即将发布的版本中添加。
你可以尝试什么:-
转到 IPython 控制台并输入命令 runfile("path_to_py_file",wdir="working_directory")
然后按回车键。
我正在使用 spyder 3 运行 python 并且我不确定如何让我的会话进入 运行 IPython.
我启动 spyder,然后单击控制台,然后选择 "Open an IPython console." 然后我在右下象限中看到有 Python 和 IPython 控制台。我确保选择了 IPython 控制台。
然后我在编辑器中 运行 一些代码:
import numpy as np
import pandas as pd
df = pd.DataFrame(np.random.randn(10, 4))
print(df)
但是,当我按 F5 时,我在 return 中得到了这个:
NOTE: The Python console is going to be REMOVED in Spyder 3.2. Please start to migrate your work to the IPython console instead.
0 1 2 3
0 0.383901 -1.021537 0.721708 -0.389721
1 -0.779638 0.010816 0.668723 -1.007539
2 -0.918172 1.100903 0.437585 -0.750007
3 0.822504 -2.546719 0.069220 -1.096228
4 1.040603 0.769918 -1.608101 0.279524
5 0.156436 0.518157 -1.278696 0.413262
6 0.211114 0.194401 -0.323856 0.988171
7 0.436519 0.611610 -1.027762 1.546440
8 -0.493041 -0.195899 0.616378 -0.135764
9 -0.355428 0.896633 0.535350 0.189172
我想在 IPython 中 运行 并且不确定我做错了什么或缺少一些基本的东西。关于如何让它在 IPython 中执行的任何想法?
仅供参考,我 运行ning windows 10 并通过 anaconda 安装了 spyder。
谢谢。
在 Win7 上通过 anaconda 安装了 spyder。无法重现此案例。
您想知道的事情:-
他们正在从 spyder 3.2 中删除 Python 个控制台,并且将只存在 IPython 个控制台。
目前在 spyder 中没有选项可以 运行 专用 IPython 控制台中的代码。这将在即将发布的版本中添加。
你可以尝试什么:-
转到 IPython 控制台并输入命令 runfile("path_to_py_file",wdir="working_directory")
然后按回车键。