Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
Today I want to program a karaoke in python.
I have to show a text (the lyrics of the song) scroll down and play the music in the background.
But I'm wondering if I have to do some code to move the lyrics and another code to play the music or I have to join both codes to do the parallel programming
But I know that Python is a structured language and I can not do parallel programming.
There are basically two simple ways to do concurrent programming in Python, using build-in libraries:
Using the threading module (https://docs.python.org/3/library/threading.html)
Using the multiprocessing module (https://docs.python.org/3/library/multiprocessing.html)
Yes, check Parallel Processing, where you can find information for:
Symmetric Multiprocessing
Cluster Computing
Cloud Computing
Grid Computing
and pick what best fits your application.
Or, check How to do parallel programming in Python?
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
How do you build complex application, I mean application with lots of code in kivy. Like a game that has many levels when you can't import one kivy file inside another(not .kv)
You can use Screen Manager for create pages so you can transfer values between these screens.It doesn't matter how many screen u created or you wrote code.You can create your own game which has different levels or characters (and other things.) I'm seeing you asking many questions in these days.But you're asking another question before giving any feedback or confirmation. You have to start coding first, after that you can share your issues here with an examples. Start coding for you game. So we can help you.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I don't want to use any library. And learn popular image processing algorithms and implement it. Purely using Python.
It's my project in college. Not anything fancy, just want to implement simple image processing algorithms on Bitmap.
Here, I'll give you a start without libraries.
filer=open('turkey.png','rb')
print(filer.read())
filer.close()
Then you have to figure out a way to decode it.
You can't. Simple answer. Python on its own does not have any libraries pre-installed or pre-imported for manipulating pictures. Why wouldn't you use libraries? If you are building a big project or even a smaller one, I think you will need to import a library. Python is very dependent on libraries! Maybe in the future if python has a pre-installed & pre-imported library for picture editing! :)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I have a python script that incorporates Excel sheets being imported, written, and that also contain username and password information. I received the massive script from a friend. It is very long and intricate and I need to incorporate it into a GUI. What is the best way to do this without having to rewrite and edit the whole script? I am a beginner to most of this.
I'd start with PyQt and read about the model-view structure it implements. Design a layout with Designer, then connect GUI buttons (signals) with functions written in the script (slots) to perform the functionality.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I would like to use Python for my project but I need to distribute the computation on a set of resources.
You can try with pyCOMPSs, which is the python version of COMP superscalar.
More info here
With this programming model you define which methods are candidate to be executed remotely defining the direction of the method parameters (IN OUT or INOUT). Then the main code is programmed in a sequential fashion and the runtime analyses dependencies between these methods detecting which can be executed in parallel. The runtime also spawn the exectution transparently to the remote hosts and do all data transfers.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I've seen several examples of simple Python client/server programs on the web. My question is, in order to have the server consistently listening from sunrise to sunset, what is the most efficient way to go?
If I just include an infinite while loop for accepting connections, is that the best way to utilize my resources, or is there a better/more efficient way to program that?
In other words, is the server tutorial here best practice (minus not catching exceptions)?
The best course of action for you would be to explore the tulip library. It's already checked in in the upcoming Python 3.4 (named asyncio), but you can start using it today.
Tulip library on google code: https://code.google.com/p/tulip/source/checkout
PEP 3156 Asynchronous IO Support Rebooted: the "asyncio" Module: http://www.python.org/dev/peps/pep-3156/