Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to test python code on multiple platforms? [closed]

Tags:

python

I found a few online python interpreters, and I could test some code on some of them, but they are all running on Linux. Is there an online python interpreter that runs on windows or mac? Or is there some other way one could easily* test some python code on other platforms?

*Without having to buy and setup each OS I want to test.

like image 624
xor Avatar asked Oct 22 '25 03:10

xor


2 Answers

Every tester that I'm aware of tests against actual installations or on virtual machines.

Virtual Box is one virtual machine that I've had a lot of success with on Ubuntu Linux for other distributions of Linux and my machine licensed Windows copy.

The os documentation describes the cross-compatibility of many of its functions, if you're using that a lot.

like image 165
Russia Must Remove Putin Avatar answered Oct 23 '25 17:10

Russia Must Remove Putin


One possibility is to set up and use IPython Notebook on Windows Azure.

From linked article:

.. This VM is a complete operating system in the cloud and will be used to run the IPython Notebook ..

You can then access that VM using remote desktop: "How to log on to the virtual machine after you create it"


If you are into writing unit tests, then travis-ci may be of interest. And it claims support Python on OS/X: "The OS X Build Environment"

like image 29
iljau Avatar answered Oct 23 '25 17:10

iljau