Step 4: Get your files and data¶
There are basically two strategies to working with data in Domino:
You can copy your data into Domino
If you are working with data that is on your local machine or in a shared server, you might want to upload your data into Domino.
You can query your data from Domino
If you have a large dataset stored in a database or data service, you may just need to query the database or the API for the data service.
In this step, you’ll copy your data into the project using the Jupyter terminal. If you have not done so, please complete Step 3 to start a Jupyter workspace.
The starting file path in your Jupyter workspace is
/mnt. By default, this is considered the root of your Domino project. If you add or modify files in
/mnt, you can save them back to your project when you stop or sync the workspace.
Use the New menu to open a Jupyter terminal.
In the new terminal, run the following command to fetch some data from the BMRS:
curl -o data.csv "https://www.bmreports.com/bmrs/?q=ajax/filter_csv_download/FUELHH/csv/FromDate%3D2020-01-01%26ToDate%3D2021-01-01/&filename=GenerationbyFuelType_20191002_1657"
Type an informative commit message in the textbox above the Sync All Changes button. Now, click the Sync All Changes button in the toolbar to perform a sync and save the new
data.csvfile to your Domino project.
Return to your project in Domino by navigating to a new browser tab. Then, navigate to the “Files” section of Domino. Notice that the raw data has been saved in the latest revision.