spyder

IPython not available in Spyder

≡放荡痞女 提交于 2019-12-06 02:44:25
问题 I don't think I'm suffering from the problem in this closely related question. I'm running Linux Mint 16 (based on Ubuntu 13.10) and have Spyder 2.2.5 and IPython 0.13.2. Under the Interpreters menu I only see Open a Python interpreter... and not an option to open an IPython interpreter. Is there anything I have to do to "show" Spyder where IPython "is"? Here is the output of my "Optional Dependencies": IPython >=0.13 : 0.13.2 (OK) matplotlib >=1.0: 1.2.1 (OK) pep8 >=0.6 : None (NOK) pyflakes

Add path to sys.path vs. PEP E402

谁说我不能喝 提交于 2019-12-06 02:44:23
In order to import a project specific module somewhere located on your disk, one can easily append this directory to sys.path: import sys sys.path.append(some_module_path) import some_module However, the latter import now violates PEP E402 ("module level import not at top of file"). At least spyder tells me so. Is spyder here too picky? In spyder there is the principal idea of a "project", where I assumed environments can be adjusted specific for this project. However, I have no clue, how to modify e.g. the sys.path depending on a spyder project. How can I modify sys.path in a spyder project?

Import OpenCV under anaconda fails

自闭症网瘾萝莉.ら 提交于 2019-12-06 01:51:27
I'm trying to use OpenCV under Anaconda for Python2.7.8.final.0. I did a fresh install of Anaconda, followed by import of the latest (win-64) distribution of OpenCV (2.4.9.1-np19py27_0) using the conda tool...all that seemed to work, the new libraries show up from >conda list. Everything is in the default locations. I ran the launcher, updated and then started spyder, and get the following: From the IPython console prompt: In [1]: import cv Traceback (most recent call last): File "", line 1, in import cv File "C:\Anaconda\lib\site-packages\cv.py", line 1, in from cv2.cv import * ImportError:

Connecting Spyder to Remote Jupyter Notebook in a Docker Container

会有一股神秘感。 提交于 2019-12-06 00:39:42
I have been trying to connect Spyder to a docker container running on a remote server and failing time and again. Here is a quick diagram of what I am trying to achieve: Currently I am launching the docker container on the remote machine through ssh with docker run --runtime=nvidia -it --rm --shm-size=2g -v /home/timo/storage:/storage -v /etc/passwd:/etc/passwd -v /etc/group:/etc/group --ulimit memlock=-1 -p 8888:8888 --ipc=host ufoym/deepo:all-jupyter so I am forwarding on port 8888. Then inside the docker container I am running jupyter notebook --no-browser --ip=0.0.0.0 --port=8888 --allow

Why is Spyder so slow in OS X? Is there a way to make it faster?

谁说我不能喝 提交于 2019-12-05 21:07:43
I have Spyder installed as part of the Anaconda Python analytics package and I'm finding the editor to be very slow. There's always a half-second lag time between key presses and the letter showing up on screen. I'm using Spyder on a fairly new i7 MacBook. This problem is generated by Qt, the graphical library Spyder is built upon. Not only Spyder but all applications that use Qt have shown this problem. A detailed explanation of the problem can be found here where we are also trying to find a a solution. As Carlos mentioned, the problem is currently with Qt. Over the past couple months,

importing module in Spyder error

本秂侑毒 提交于 2019-12-05 18:30:43
I am trying to use sklearn in Spyder. At the beginning when I tried to import it I was gettingImportError: No module named sklearn Then I tied to set the PATH with PYTHONPATH manager and then use 'Update module names list' from tools menu.then restart the spydet but no success. at the end I copied the sklearn folder to /Applications/Spyder.app/Contents/Resources/lib/python2.7 This is how I find the PATH of sklearn and copied in into this folder : >>> import sklearn >>> sklearn <module 'sklearn' from '/Library/Python/2.7/site-packages/scikit_learn-0.12_git-py2.7-macosx-10.7-intel.egg/sklearn/_

三个python集成开发环境,喜欢的话记得收藏哦

不羁岁月 提交于 2019-12-05 13:43:35
Python是一种非常流行的开源编程语言。得益于无尽的模块选项,Python今天广泛用于脚本语言、Web开发、移动和桌面在许多领域。随着人工智能的复兴,数据科学的崛起,Python更是红火起来了,而今天小编要跟大家分享的是比较流行的三个python集成开发环境,喜欢的话记得收藏哦。 一、PyCharm 商业经济化-Python IDE 节省时间成本,采用以键盘为中心的方法来充分利用PyCharm的许多生产力特性。它可以对你的代码了如指掌。依靠它实现智能代码编程,实时bug检查和快速修复。编写整洁和可维护的代码,同时IDE帮助您通过大数据检查、分析测试、来控制质量。 二、Spyder 强大的科学环境-Spyder,用Python编写,由科学家、工程师和数据分析人员设计。它将全面性开发工具的高级编辑、分析、调试与科学软件包的数据探索、交互执行、深度检查和漂亮的可视化功能结合在一起。 除了它的许多内置功能之外,它的功能还可以通过插件系统和API进一步扩展。此外,Spyder还可以用作PyQt 5扩展库,允许在其功能的基础上组件(如交互式控制台)嵌入到自己的软件中。 三、LiClipse Lilipse-为Eclipse用户提供新的体验: 在完美继承Eclipse原有功能的情况下,为Eclipse的用户提供了一个全新的体验,用户可以得到现成的:快速编辑器支持多语言的开箱

`conda update --all` not updating Spyder

假装没事ソ 提交于 2019-12-05 08:11:57
I just installed Anaconda on a Windows 10 machine and the first thing I did thereafter was go into the Anaconda Prompt and run conda udpate conda and then conda update --all . As expected, it updated a lot of stuff. When I then ran Spyder, however, I got a pop-up saying that a new version of Spyder was available. What? I just updated everything. Checking conda list I see that sypder 3.2.4 is indeed installed, so I do the following: (base) C:\Users\Mark>conda update --all Solving environment: done All requested packages already installed. (base) C:\Users\Mark>conda update spyder Solving

How do I view data object contents within an npz file?

本秂侑毒 提交于 2019-12-05 02:54:34
问题 I am using Spyder IDE and Python 2.7. I have a npz file called data.npz which was given to me. I want to load this file into Spyder and view whatever is inside. To start I've done this: import numpy as np data = np.load('data.npz') In my Variable Explorer in Spyder, I have a variable with the name "data" and the type "object". When I double-click on this variable, Spyder gives an error saying "object arrays are currently not supported". When I just type data I get something like this: array({

How to start two instances of Spyder with Python 2.7 & Python 3.4?

大兔子大兔子 提交于 2019-12-05 02:07:19
I had spyder installed with Python 3.4 on Windows Vista. Today I wanted to run spyder with Python 2.7. So, went through this post & installed Python 2.7 for spyder. Now, how do I start spyder with Python 2.7 instead of the default 3.4? ( I wanted to comment at the post & ask @user3058525 but could not due to reputation restriction ) Could anyone help out? P.S: I could create a virtualenv. But want to work in spyder... @Roberto: Gotcha! Learnt that we can check for environments installed in conda using conda info -e It showed the path for installed python 2 environment as C:\Users\ramprasad.g