Questions tagged as 'python'

1
answer

help with web service in python

I have this web service, which should then give me a graph the code is all right and it gives me a graph without data, how do I enter the data and that I graph that data? I'm working on this code in colaboratory. #importar graficador import ma...
asked by 21.10.2018 / 23:38
0
answers

How is cx_Freeze used in macOS?

I have already created a script in python and I would like to convert it to a program (that does not have to be opened from the IDLE). I already have the cx_Freeze module installed, but I can not find how to use it in mac.     
asked by 20.10.2018 / 21:33
0
answers

Problem with numpy meshgrid

I am stuck in a problem with matplotlib and using numpy.meshgrid. I have a 3D mesh of points called "grid3" in format x, y, z, pot. The point mesh is organized in the following way: x = grid3[:,0] y = grid3[:,1] z = grid3[:,2] pot = grid3[:,3]...
asked by 28.10.2018 / 18:14
0
answers

Python - QBasicTimer :: start: QBasicTimer can only be used with threads started with QThread

I'm trying to implement an animation in my project, this animation starts when you press the self.l_entrar button and it should end when the login window closes and there will be the following: however I get the following error: QObj...
asked by 18.10.2018 / 19:53
0
answers

Mouse events do not work correctly in Pygame and Python

I have this: while menu: #capturaEventos() global click global gameOver events = pygame.event.get() for event in events: if event.type == pygame.KEYDOWN: if event.key == pygame.K_q: game...
asked by 19.10.2018 / 20:29
0
answers

how can I make it to split arduino data with raspberry pi 3b + and send them to thingspeak

I want to send data from 3 sensors to Thingspeak using RPi3B + and arduino for ADC conversion using Phyton, how can I get Phyton to divide or concatenate each data in a separate Field so that thingspeak can graph them to me. Thanks import seri...
asked by 18.10.2018 / 04:54
1
answer

Colar Project Django in virtualenv

Hello everyone, I have the following situation. Create my Django application in a virtualenv environment, the application already runs is perfect in my virtual machine, the whole project was created within a virtualenv environment. I am pr...
asked by 18.10.2018 / 05:26
0
answers

Find a cycle of 'n' nodes using DFS

I have a function with the following header: def DFS(G,s,n): G: Graph to walk. s: Node source or parent node. n: Number of nodes for the cycle. Input: We will pass to the function a graph G, a node 's' from where our dfs search wil...
asked by 24.10.2018 / 17:03
1
answer

Linux, Python, services and demons

I have a program in python that works with sockets (opens a server, collects information, filters it, etc.) and I want to launch it at the beginning of linux. I would like to launch it as a service. For this I have created the start script...
asked by 18.10.2018 / 13:03
1
answer

Save everything I print in my Python file to a new file

Good I have the following code that looks for a number in this column and then prints some lines that are above and below: import collections import sys import itertools with open...
asked by 18.10.2018 / 14:03