Getting started with Python IN GALILEO

To get started with Galileo, log into your account using Firefox or Chrome.

Understanding the User Interface

When you log into Galileo, the first thing you’ll see is your Dashboard:

batch mode 1

To run the Python example, start by navigating to the Missions tab using the side menu. Clone the Python Batch example Mission from the Explore Missions tab. Use the filter to search for the mission by name and click “Apply”.

Once you have found the correct Mission, click “View Mission”.

To clone the public Mission to your account, click the “Clone” button in the upper right corner of the interface. Choose between creating a public or private clone and also choose which Cargo Bay to use.

batch mode -4

To clone the public Mission to your account, click the “Clone” button in the upper right corner of the interface. Choose between creating a public or private clone and also choose which Cargo Bay to use.

batch mode -4

You will now see a cloned copy of the Mission in your Missions.

batch mode -4

Let’s have a look at our files

Our python_example folder contains three files named python_example.py, mtcars.csv, and Dockerfile. The example_python.py script conducts a linear regression, makes two simple plots, and then runs a Monte Carlo simulation. The Monte Carlo simulates tossing a die 10 million times and calculates the ratio of rolls that equal six.

Running a Job and Collecting Results

batch mode -5

Now we are ready to run a job using the Mission.

Click the Run button in the upper right corner of the Mission tab. You will see a “Mission run successfully!” message.

At the bottom of the Mission tab, you can track the progress of the job.

batch mode -6

Once the computation is completed, the job will shut down and collect the results.

Once the job progress reads “Completed”, you can download the results by opening the three-dot menu and clicking Download.

batch mode -7

Let’s take a look at the the output.log file first, which returns the results of the regression and simulation:

batch mode -8

Next, if we look in the results folder, we can see the plot we created for the regression:

We hope this tutorial was helpful. Please let us know if you have any questions or any problems using Galileo.

Your feedback is extremely important to us.

Contact us anytime at matthew@hypernetlabs.io or alexander@hypernetlabs.io.

Sign Up Now and Deploy Your Job in Minutes!

Contact us for enterprise support and pricing.