spyder

How to get to last record of large dataframe in Spyder window?

给你一囗甜甜゛ 提交于 2019-12-25 00:06:03
问题 I want to be able to open a dataframe in a Spyder (Python IDE) window and quickly scroll down to the last record of a relatively large pandas dataframe (134,890 records in table). It's frustrating because Spyder only loads a certain number of records from large tables, and scrolling down takes a while. Does anyone know a shortcut or option to quickly get to the end of the dataframe, without writing any code like df.tail()? The following image shows a dataframe with data extending into 2018,

Ipython option not visible in spyder

耗尽温柔 提交于 2019-12-24 20:18:28
问题 I just installed the macports versions of spyder and ipython onto my macbook pro running osx 10.8. There does not seem to be a way to open an ipython console from this version of spyder. That is, there is no mention of ipython in the Interpreters menu, nor in the preferences. Has someone come across this problem and might know how to fix it? Many thanks. Adrian 回答1: ( Spyder dev here ) According to this page the latest stable IPython version in MacPorts is 1.0, which is unsupported by Spyder

Speech Recognition: AttributeError: module 'speech_recognition' has no attribute 'Recognizer'

谁说胖子不能爱 提交于 2019-12-24 19:57:39
问题 I'm trying to run a speech recognition using the Speech Recognition Project I installed SpeechRecognition as illustrated. My code ran correctly for a few times. I was trying to input different files. Now I started getting the following error: import speech_recognition as sr Traceback (most recent call last): File "<ipython-input-1-a4d5c9aae5d0>", line 1, in <module> import speech_recognition as sr File "/Users/Sashank/Documents/Deep_Learning_A_Z/Personal Projects/Speech recognition/speech

Spyder not running Kivy script

只谈情不闲聊 提交于 2019-12-24 18:37:30
问题 I wrote a script on python 2.7 using kivy. When I run the program in python IDLE it works fine but when I run in in Spyder I get the following error: runfile('C:/Users/Roelof/Documents/ubuntu_share/plate_count_program/script.py', wdir='C:/Users/Roelof/Documents/ubuntu_share/plate_count_program') [INFO ] [Logger ] Record log in C:\Users\Roelof\.kivy\logs\kivy_18-03-10_12.txt INFO:kivy:[Logger ] Record log in C:\Users\Roelof\.kivy\logs\kivy_18-03-10_12.txt [INFO ] [Kivy ] v1.10.0 INFO:kivy:

Spyder: different results depending on if I run code with F5 or F9

邮差的信 提交于 2019-12-24 15:56:23
问题 I've got different results while trying to run the same following code: import PyPDF2, pdfplumber, re, pandas, sys, os, time, glob import numpy as np from read_pdf_function import * from os import listdir from os.path import isfile, join from time import gmtime, strftime,localtime from multiprocessing import Pool path=glob.glob('SFCR\*.pdf') with Pool(8) as p: fPage = p.map(find_data, path) print(fPage) (find_data is a function that I wrote in read_pdf_function, it returns the first page with

Python unicode equal comparison failed in terminal but working under Spyder editor

有些话、适合烂在心里 提交于 2019-12-24 12:34:57
问题 I need to compare a unicode string coming from a utf-8 file with a constant defined in the Python script. I'm using Python 2.7.6 on Linux. If I run the above script within Spyder (a Python editor) I got it working, but if I invoke the Python script from a terminal, I got the test failing. Do I need to import/define something in the terminal before invoking the script? Script ("pythonscript.py"): #!/usr/bin/env python # -*- coding: utf-8 -*- import csv some_french_deps = [] idata_raw = csv

Spyder IDE reload code with run selection ('F9')

丶灬走出姿态 提交于 2019-12-24 12:22:06
问题 Is it possible to make UMR work with 'F9' (run selection)? I often use the run selection feature in spyder to call a specific function of a module under debugging from an external script (MATLAB workflow). Using an external script helps to provide the required function input (variable explorer,...). However, I don't want to run the entire script from the beginning ('F5'), since it contains time consuming calls. Unfortunately, it seems like modified modules are only updated via UMR when

Object array is not picklable

拈花ヽ惹草 提交于 2019-12-24 10:03:59
问题 I made a class in python like the following: class myClass(): _fields_ = [1, 2] where field_1 & field_2 are supposed to be integers. Then I created an array that its elements are of the class myClass as following: array = [ myClass() for i in range(5)] When I wanted to check the values of the elements of array in the variable inspector, it gives my the following message: "Spyder was unable to retrieve the value of this variable from the console." "The error message was: Object array is not

Spyder/Pythonxy crashes

▼魔方 西西 提交于 2019-12-24 09:28:55
问题 Upon installing python xy 2.7.5 on my laptop, I tried to launch the Spyder IDE. This yielded the following error: C:\Python27\Scripts>spyder.exe Traceback (most recent call last): File "C:\Python27\Scripts\spyder-script.py", line 9, in load_entry_point('spyder==2.2.0', 'console_scripts', 'spyder')() File "C:\Python27\lib\site-packages\spyderlib\start_app.py", line 72, in main from spyderlib import spyder File "C:\Python27\lib\site-packages\spyderlib\spyder.py", line 112, in from spyderlib

Spyder together with Mayavi

北慕城南 提交于 2019-12-24 06:47:51
问题 Is it possible to use a different IDE as a front end while using the Canopy EPD engine in the back end? In particular, I'd like to use mayavi.mlab scripting from Spyder's ipython interpreter. I'm working on a macbook pro running OSX 10.8. Is there a way to set this up? I have tried to set up mayavi and spyder using macports, but that does not seem to work. The only working version of mayavi that I have managed to set up runs from the commercial Canopy platform. So if I can't get the macports