Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I have a python script that produce a figure (with matplotlib) with data from .txt files.
My goal is to run the python script from an HTML code and print the figure on a website. That way, I could just update the .txt files on the website and have a figure always up to date with the data.
I saw Flask and Django that make applications, but I already have my HTML made, so I just want a way to simply include a "run python script" somewhere in my HTML code. I saw web.py or Python CGI programming but I'm not sure if I can do what I want.
Is there another way to acheive that from a python package or should I really start a Django/Flask app? Should I have another approach?
If you really need to run your Python in the browser then take a look at Brython.
It is a JavaScript library that allows you to load and run Python 3 in the browser:
https://brython.info/
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I have been using IDLE to program in python for the time being, and it is starting to get tedious to launch it from terminal. I have looked online to try to find a solution for this but haven't found out how to launch it in a typical Mac like way from spotlight (I have already tried putting it into the applications folder).
I am also open to any other suggestions for any better IDE's that work the same way as IDLE, with its own built in compiler.
Try Visual Studio Code, it comes with everything you need for Python development, including a feature to launch and test your program from the application.
It's free and open source, you can pick it up here :)
I prefer Pycharm IDE. It is a JetBrain Product
https://www.jetbrains.com/pycharm/
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
I am new to Robotframework as well as to Python. I got to do the Functional Testing of the Java application(not a single jar file, but it is an installer file) and even i got to know that there is SwingLibrary for doing that.
Now my question is
What all the tools do I need to have apart form Robotframework, RIDE
Will it be the Java coding or the Python scripts?
How to connect my application to the test framework
and please post any documentations for learning because i went through this link , but i didn't understand where to deploy this thing.
Other than Ride, you can use Eclipse IDE. Install java and set environmental variables for that along with Eclipse IDE on your
machine. To create your own robot framework you need to add a plugin
called "RED" in your eclipse IDE.
There will be libraries available for some actions. If you want to create your own then you can write your test scripts using python or Java with robot framework. Every method name would be your keyword.
Once you create your own robot project, you can import the libraries that you want into red.XML which you will find in your
robot project.
Let me know if you have any queries..
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I was wondering if there is an online python interpreter with Pygame. It would be great if there is one, because when I share a game, I don't have to compile it first, I just send the code, and possibly upload the textures to a storage server and change the URL for the image location.
Is there an online Python interpreter with Pygame?
None that I'm aware of. Running a Pygame application in the browser would require some way of displaying graphics and playing sound from a remote Python interpreter. This would be pretty complicated to do, and would likely not perform very well anyway.
If you want to write games which run in a web browser, learn Javascript.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I am trying to figure out what the best Python tools would be to add BPM information to a file. The yaafe and LibXtract libraries seem to have Python bindings, but seem to be sparsely documented. How can I go about doing this in Python?
If you're willing to upload your data to an external server, try using the EchoNest API -- it has good Python bindings and lots of tools for music information retrieval tasks such as this.
I recently found this. Usage is found in the README.
python metaBPM.py -s [path to your music collection]
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Who can tell me a small or middle opensource (for instance, on Github) project on Python (not Django) with good test coverage, using unittest. I've read some books and articles about this theme and I want to get practice of unittest. See real unittest code in real project.
You could have a look at Flask (Github) and how they handle unittests.
I'd also look into using nosetests, you can write your tests in the unittest style if you like or in a more modular way. In order to get coverage using nosetests all you need to do is tack on the --with-coverage modifier on the command line. Also if you just want good coverage of your code as it's executed I'd use the actual coverage module http://nedbatchelder.com/code/coverage/ you can import it into your project and use it programmatically as well. Hope this helps.