Wherever you are, whatever strange function you are building up, our Magic Object allows you to easily develop and interact with Innocuous Book Experiment.

Install the Magic Object locally. This will allow you to test and debug your code locally before uploading to the platform.

pip install innocuous-magic

Here’s how to use it:


  1. Instantiate the Magic Object before use.
mj = MagicObj()

Methods 📓

get_path

get_path(filename)

This method returns filename if run locally or in the cloud IDE. If run remotely returns the location of the remote dataset.

Arguments ​Type
filename String (name of data with extension which you want to download)

Example:

data_path = mj.get_path(
                filename = "/mydir/boston_housing.csv")
data = pd.read_csv(data_path)

log