spyder

IPython console in spyder extremely slow in Anaconda

℡╲_俬逩灬. 提交于 2019-12-05 02:06:53
问题 I'm trying Anaconda/Spyder after using the standard python installation/IDLE for several years. The console (and variable explorer) becomes progressively slower during each work session, with every script and interactive command that I run. Eventually it takes minutes to get a response to simple commands like print, and then it stops responding completely and I shut it down. It's pretty disruptive to my work. Mac OSX 10.13.6 conda version : 4.5.11 conda-build version : 3.15.1 python version :

How to run current line in Spyder 3.5( ctrl +f10 not working)

老子叫甜甜 提交于 2019-12-04 23:59:33
I am very new to Python and I am used to R studio so I choose Spyder. On the Spyder layout I saw a button 'run current line (ctrl +f10)'. But it doesn't work by pressing the button or c+10. Am I missing something? I can only select the script and 'ctrl+enter ' to run current line which is not convenient at all. I am using ubuntu with Anaconda distribution. The key to run the current line by itself is F9 . The shortcut ctrl+F10 is used if you are in debugging mode. You can see a list of shortcuts by selecting Preferences in the Tool menu, and then clicking on Keyboard shortcuts . Coming from R

Open spyder in ubuntu

女生的网名这么多〃 提交于 2019-12-04 19:54:06
问题 I want to open spyder(Python IDE) in ubuntu. Normally I would write "spyder" in the shell, and it would open the spyder IDE. Now when I write spyder in the shell, it just new lines, and nothing happens(similar to pressing 'enter'). --- How do I get my spyder back? EDIT - I get no errors, it just skips to the next line. 回答1: If typing "spyder" doesn't work, you might want to try typing "spyder3" in case you installed the spyder3 version. Below is what worked for me in my Ubuntu system. To

Spyder + Python 3.5 - how to debug kernel died, restarting?

梦想的初衷 提交于 2019-12-04 16:12:40
I am working for the first time towards the implementation of a very simple GUI in PyQt5 , which embeds a matplotlib plot and few buttons for interaction. I do not really know how to work with classes so I'm making a lot of mistakes, i.e. even if the functionality is simple, I have to iterate a lot between small corrections and verification. For some reason I would like to debug, however, the whole process is made much, much slower by the fact that at any other try, the python kernel dies and it needs restarting (all done automatically) several times. That is, every time I try something that

Anaconda打开多个spyder窗口 转载

有些话、适合烂在心里 提交于 2019-12-04 15:42:01
from https://blog.csdn.net/u013841196/article/details/93862975 已经打开了一个spyder窗口,程序在运行;发现再点击快捷键也打不开新的spyder窗口。 此时需要再打开一个新的spyder窗口 在anaconda prompt终端输入: spyder --new-instance 来源: https://www.cnblogs.com/gisalameda/p/11871860.html

How do you use replace in Spyder?

喜你入骨 提交于 2019-12-04 15:26:43
问题 Well, you start with cursor on your text, Ctrl + H and type replacement. But surprisingly i was not able to found any shorcut for actual replace or replace all action, rather than tabbing 5(!) times or moving my hand for a mouse. Straightforward enter does nothing, tabbing to replace button and entering replaces, but throws me into the editor. VisualStudio-like Alt + A does nothing. Am i missing something in spyder shortcuts? 回答1: The shortcut for replace is Ctrl + R . 回答2: I have the same

Spyder's Warning: “Session/line number not unique in database”

丶灬走出姿态 提交于 2019-12-04 12:01:30
When I am programming in Spyder it happens from time to time that I get an error message like this: ERROR! Session/line number was not unique in database. History logging moved to new session I never really bothered with it, because I couldn't see any effect it had on the outcome of my code. However, just to be sure, I'd like to know what exactly it means, for which reasons this error tends to occur and whether/how I should fix it. Google wasn't a great help for that matter, but from naive observation, I have the hunch that it is related to printing things to the console. ( Spyder maintainer

How do I force Matplotlib to draw while in the ipdb debugger in Spyder (or any other debugger)?

柔情痞子 提交于 2019-12-04 10:07:35
问题 EDIT Unfortunately, at the moment this is not possible. I found out that it is a bug in Spyder. The developers are still figuring out how to approach this. Goal Visualize data while debugging code (and I want to use Spyder too!). Attempt #1: Run foo.bar from IPython from Spyder Create a file named foo.py with the following code: from ipdb import set_trace as st import matplotlib.pyplot as plt def bar(): st() While in IPython, type the following: In [4]: import foo In [5]: foo.bar() --Return--

AttributeError when reading a pickle file

那年仲夏 提交于 2019-12-04 10:04:50
I get the following error when I'm reading my .pkl files on spyder (python 3.6.5): IN: with open(file, "rb") as f: data = pickle.load(f) Traceback (most recent call last): File "<ipython-input-5-d9796b902b88>", line 2, in <module> data = pickle.load(f) AttributeError: Can't get attribute 'Signal' on <module '__main__' from 'C:\\Python36\\lib\\site-packages\\spyder\\utils\\ipython\\start_kernel.py'> The context: My program is made of one file: program.py In the program, a class Signal is defined as well as many functions. A simplified overview of the program is provided below: import numpy as

Python Module Error on Linux

馋奶兔 提交于 2019-12-04 08:36:43
问题 I am using python 2.7 on Linux Mint 16. I am facing an error, if I run my IDE (tried it on Spyder and Pycharm) from a program launcher (eg. from the prompt at Alt F2 or an icon shortcut on my desktop) the modules do not load and I get the following error File "/usr/local/lib/python2.7/dist-packages/gurobipy/__init__.py", line 1, in from .gurobipy import * ImportError: libgurobi56.so: cannot open shared object file: No such file or directory However, if I run the program from the command line