spyder

Spyder IDE won't start WinPython-64bit- 2.7.10.2

依然范特西╮ 提交于 2020-01-25 01:23:09
问题 I have been using Spyder IDE available in Anaconda's distribution. For some reason it just would not start I did a couple of uninstalls and reinstalls, tried starting it from command prompt but to no avail. I am running Windows 8.1 64 bit. I tried installing WinPython-64bit- 2.7. When I try starting spyder from the command prompt i face this error. C:\WinPython-64bit-2.7.10.2\python-2.7.10.amd64>spyder.exe Splitting and Joining Strings Traceback (most recent call last): File "C:\WinPython

Spyder ignores .pycodestyle

自古美人都是妖i 提交于 2020-01-24 11:34:26
问题 I am using Spyder v.3.2.8 and I'm trying to modify the Real-time code style analysis. For example, I'd like to set the max-line-length to 99. I exactly followed what was suggested here, i.e. I created a file .pycodestyle in the directory resulting from import os; os.path.expanduser('~') . The file looks as follows [pycodestyle] ignore = E226,E302,E41,E501,W503 max-line-length = 99 I am aware that ignoring E501 renders max-line-length virtually ineffective. However, I still get warnings if the

Spyder ignores .pycodestyle

爷,独闯天下 提交于 2020-01-24 11:32:48
问题 I am using Spyder v.3.2.8 and I'm trying to modify the Real-time code style analysis. For example, I'd like to set the max-line-length to 99. I exactly followed what was suggested here, i.e. I created a file .pycodestyle in the directory resulting from import os; os.path.expanduser('~') . The file looks as follows [pycodestyle] ignore = E226,E302,E41,E501,W503 max-line-length = 99 I am aware that ignoring E501 renders max-line-length virtually ineffective. However, I still get warnings if the

Cannot import my own module when running script in Spyder

跟風遠走 提交于 2020-01-23 17:33:31
问题 According to the official Python documentations or to this post importing own modules into scripts is quite easy. Basically I just need to create my .py files, save them in one directory and I can import them using just from my_module import my_function It is exactly what I did in my Project. I wrote two scripts and saved them inside one directory. I would like to use some functions from them in third script (again it is saved in the same directory). As in the picture below. Now I import

Spyder Python indentation

独自空忆成欢 提交于 2020-01-23 05:22:56
问题 I am using spyder IDE for python coding. I copied the code from some source,it works fine. But when I make edits in it indentation error occurs. There is always some mistake in the alignment of my edit and the other part of code. Code is quite large I can't re indent it. 回答1: In Spyder v3.0.0, go to Source --> Fix Indentation. That worked for me. 来源: https://stackoverflow.com/questions/26780925/spyder-python-indentation

Anaconda: find version with Spyder IDE

偶尔善良 提交于 2020-01-21 15:15:27
问题 I just ran into an issue. I had an installation of Anaconda from 2016, it was version 4.1. I then downloaded a new version of Anaconda version 5.1. I installed this version on windows 7. I have now 3 versions of Anaconda on my windows machine, one is for Anaconda with python-2 (v4.1 anaconda), and Anaconda v4.1 with python-3. And the new Anaconda v5.1 with Python-3. In the older versions when using Spyder IDE, when the console came up, it would state the python version and the version of

Anaconda: find version with Spyder IDE

↘锁芯ラ 提交于 2020-01-21 15:13:45
问题 I just ran into an issue. I had an installation of Anaconda from 2016, it was version 4.1. I then downloaded a new version of Anaconda version 5.1. I installed this version on windows 7. I have now 3 versions of Anaconda on my windows machine, one is for Anaconda with python-2 (v4.1 anaconda), and Anaconda v4.1 with python-3. And the new Anaconda v5.1 with Python-3. In the older versions when using Spyder IDE, when the console came up, it would state the python version and the version of

Spyder does not run Python scripts after matplotlib upgrade

只愿长相守 提交于 2020-01-17 06:51:28
问题 I was coding in Python 2.7 with Spyder 2.1.9 , using matplotlib 1.1 . The operating system is Linux Ubuntu 12.04 LTS. I requested the upgrade of matplotlib with sudo pip --upgrade python-matplotlib . The upgrade went well: the end message is successfully installed matplotlib numpy foos bars . Now, if I open an interpreter in the terminal and type import matplotlib print(matplotlib.__version__) the answer is 1.5.1 . This version of matplotlib is installed in /usr/local/lib/python2.7/dist

How to plot in a new window in Spyder-IDE(Python)

孤者浪人 提交于 2020-01-16 17:51:25
问题 My Spyder-IDE prints the plots in it's ipython console . How can I change the settings to do plotting on a new pop-up window? 回答1: You need to go to the menu Tools > Preferences > IPython console > Graphics > Graphics Backend and select the option called Automatic there. After doing that you need to restart either Spyder or the console kernel for this change to take effect. 来源: https://stackoverflow.com/questions/54840619/how-to-plot-in-a-new-window-in-spyder-idepython

Frozenset doesn't display its contents in Spyder Variable Explorer

安稳与你 提交于 2020-01-16 15:45:55
问题 After applying apriori algorithm to Market Basket Optimization data set when I open the rule in Spyder, instead of showing frozenset({'light cream', 'chicken'}) shows frozenset object of builtins module My code: import pandas as pd # Read dataset dataset = pd.read_csv('Market_Basket_Optimisation.csv', header = None) transactions = [] for i in range(0, 7501): transactions.append([str(dataset.values[i,j]) for j in range(0, 20)]) # Train model from apyori import apriori rules = apriori