spyder

Problems with Spyder 3 in macOS Sierra

限于喜欢 提交于 2019-12-12 03:42:37
问题 I have recently installed the latest conda distribution on macSierra. I have encountered many problems: 1) My main concern is that Spyder crashes eventually, especially when switching between applications and coming back to Spyder the rotating wheels keeps eternally spinning and unresponsive. This happens after ~10 minutes of use. I have tried spyder with different graphic backend for ipython and the problem still happens. When launching spyder the following message appears: [warn] kq_init:

Spyder 'runfile' is not defined

自古美人都是妖i 提交于 2019-12-12 03:04:11
问题 I am trying to run a script in Spyder , but am getting the following error: NameError: name 'runfile' is not defined. I tried a variety of things, like updating the PYTHONPATH variable, but nothing seems to be helping. I have Python 2.7, Anaconda 2.4, and Spyder 2.3.8. I have my PYTHONPATH set to: C:\anaconda\\...\externalshell 回答1: The source of this was an issue with the import of sitecustomize. This was apparent when you clicked on All Programs>Anaconda>Anaconda Prompt in the Windows Start

Memory error only in Spyder IDE

一个人想着一个人 提交于 2019-12-12 02:59:27
问题 doing the following causes a MemoryError in my Spyder Python IDE: >>> from numpy import * >>> a_flt = ones((7000,7000), dtype=float64)+4 >>> b_flt = ones((7000,7000), dtype=float64)+1 Traceback (most recent call last): File "<stdin>", line 1, in <module> MemoryError >>> THis is weird, since the memory usage in the statusbar of Spyder shows that only approx. 25% of my memory is used. Furthermore, when generating even a higher number of these large 7000*7000 arrays in the standard Python IDE

matplotlib slider not working when called from a function

你。 提交于 2019-12-12 02:25:25
问题 I have the following code, which shows a graph with a slinding bar from matplotlib.widgets import Slider import matplotlib.pyplot as plt from numpy import arange, sin, pi t = arange(0.0, 10.0, 0.01) fig =plt.figure(figsize = [30,20]) ax = plt.subplot(111) plt.plot(t, sin(t*10)) plt.ylim((-2,2)) plt.xlim((0,1)) plt.tight_layout() axzoom= plt.axes([0.15, 0.05, 0.65, 0.03]) szoom = Slider(axzoom, 'Window', 1, 2) def update(val): ax.set_xlim([val,val+1]) fig.canvas.draw_idle() szoom.on_changed

Why spyder can't import tensorflow

走远了吗. 提交于 2019-12-12 02:14:52
问题 I have installed tensorflow with anaconda in Windows, but I can't import tensorflow in spyder IDE? 回答1: The reason Spyder is unable to import Tensorflow is that Anaconda does not store the tensorflow package in the same environment. One solution is to create a new separate environment in Anaconda dedicated to TensorFlow and containing Python with its own Spyder and then install tensorflow into that environment 来源: https://stackoverflow.com/questions/42619665/why-spyder-cant-import-tensorflow

oct2py in Anaconda/Spyder not recognizing octave

試著忘記壹切 提交于 2019-12-12 02:13:41
问题 Windows7 Anaconda/python ver 3.4 Octave ver 4.0.3 OCTAVE_EXECUTABLE = C:\Users\Heather\Octave-4.0.3\bin Hi all, I've been working a few days on trying to get oct2py working in Anaconda using Spyder. I was wondering if anyone could tell me the correct way to get it to work in Spyder on a windows machine? Basic setup maybe or maybe I'm using the wrong packages? So far I've installed the oct2py package per the Anaconda Cloud using: conda install -c conda-forge oct2py=3.5.9 In all the

Sublime Text / Spyder / Text-antialiasing Windows

。_饼干妹妹 提交于 2019-12-11 20:36:41
问题 In a nutshell, I can't get text in Spyder to look nearly as good as Sublime Text. (I have the same basic problem with PyCharm in comparison to Sublime, as well). Below is a pic of the same file (Sublime left, Spyder right), side by side in both programs, same font (Source Code Pro, 13 points), both running Monokai Extended Bright, which I went in and tweaked a little to get the colors to match as much as possible. ClearType is on. Is there anything that can be done to make text - pardon the

Can't launch Spyder from Anaconda Navigator

不问归期 提交于 2019-12-11 18:47:53
问题 Three days ago I was playing around with Python, Mayavi and Jupyter Notebooks to create visualizations. This required to install PyQt5. Due to constantly reaching memory errors, I've decided to test without using virtualenv's and installed the needed requirements on my local environment (which of course didn't solve). After that, I was on my way to create visualizations using matplotlib and other Python libraries but can't launch Spyder from the Anaconda Navigator. This is the error showing

Strange module reload behavior in spyder or IPython

落爺英雄遲暮 提交于 2019-12-11 17:46:11
问题 I have an issue re-running a script in spyder, which dynamically tabulates some of its own attributes. Here is a minimal example that is representative of what I am doing. I have a source script that I run with the normal Run (F5) command. It runs in the same directory that it lives in: runfile('C:/some/path/test.py', wdir='C:/some/path') test.py import sys def x(): pass def y(): pass x.add = y.add = True if __name__ == '__main__': a = [obj for obj in tuple(sys.modules[__name__].__dict__

How to restart kernel in python through code in spyder to avoid repetitively and manually doing it?

限于喜欢 提交于 2019-12-11 17:21:21
问题 I am ensemble 2 models in syder. ( A RNN and an encoder-decoder both running on same data set). Each of them has 100 models saved in .h5 format. After loading and running RNN if I try to load models for Encoder-Decoder the system becomes slow. The solution that I found was to restart the kernel by pressing ctrl+. . How do I automate it through code so that both the models can be run in single script? 来源: https://stackoverflow.com/questions/55554746/how-to-restart-kernel-in-python-through-code