Questions tagged as 'python'

0
answers

From Python to LaTeX [closed]

How do I generate a latex table from Python? For example, out of 25 columns I pull the average by rows and then sort the latex document and compile it into Python. Leaving a PDF at the end.     
asked by 28.10.2016 / 22:31
0
answers

Differentiate tall and long figures in Findcontours python openCV

I'm doing a code to identify vegetation and measure it linearly. I have already managed to generate the binary mask of vegetation and soil. Now comes the process of identifying the figures (vegetation), I can perfectly identify and measure them,...
asked by 28.02.2017 / 16:11
0
answers

how to return a number that is the subtraction of the sum of the digits of the whole part and the sum of the digits of the decimal part in python [closed]

I know that this is not a task site or anything because of this style, but I really could not with a workshop point that I was left in, you could help me please, I tried to see it somewhere but I block with is to take the sum of the whole and de...
asked by 14.02.2017 / 01:30
0
answers

With requests or urllib how can I get a fully loaded page?

I'm starting in this web scraping and I'm trying to download all the images of an imgur post, there are more than 1500 but I only download the first 15, that's because the page is loading 15 in 15 images, how can i make the request.get (url) .co...
asked by 10.10.2016 / 00:01
0
answers

(grep -r) Search for a string in each pdf [closed]

In Android 4.4.4 I have the terminal.apk installed. How to recursively search a tablet for a specific string in each pdf file? At the beginning I was going to do it with qpython ( listdir , glob ), but I could not distin...
asked by 02.10.2016 / 01:26
0
answers

Problem installing Mayavi 4.5 in a 64-bit Anaconda3 distribution over Windows 8.1

I have a problem installing Mayavi 4.5 on the 64-bit version of Anaconda3 (in the 32-bit it does not give a single problem). After installing Anaconda3, by: conda install -c menpo mayavi=4.5.0 I install Mayavi. Everything seems to work well...
asked by 05.09.2016 / 23:21
0
answers

How can I try a scheduled task using Huey?

I need to create a unit test for a scheduled task (schedule), the task works perfectly but in the tests it always returns None: update_task_id = update_delivery_minutes_change.schedule( args=(instance.id,), delay=(60 * 30) ) update_tas...
asked by 29.08.2016 / 23:19
0
answers

Requests python- Authentication failed NOT support JavaScript

# -*- encoding: utf-8 -*- import requests, json from requests.auth import HTTPBasicAuth from bs4 import BeautifulSoup headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2...
asked by 03.08.2016 / 17:14
2
answers

Error importing TkInter in Python 3.5 [closed]

I receive an error when importing TkInter in Python 3.5. This is the error message that shows:    File "/usr/local/lib/python3.5/tkinter/init.py", line 35, in       import _tkinter # If this fails your Python may not be configured for Tk   ...
asked by 26.07.2016 / 05:53
0
answers

Connect mysql with apache spark using python? [closed]

I am starting to use spark for some data response problems that we have since mysql . I have consumed tables that I exported with phpmyadmin to son but I want to connect directly to my localhost to consume the database...
asked by 17.06.2016 / 22:29