Skip to content

Commit

Permalink
Update notebook with google drive mount
Browse files Browse the repository at this point in the history
  • Loading branch information
CallieHsu committed Sep 21, 2023
1 parent 41c128d commit 27180fd
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
Binary file added notebooks/images/instructions_5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/images/instructions_6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added notebooks/images/instructions_7.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 32 additions & 1 deletion notebooks/notebook_for_chamber.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"set -e\n",
"\n",
"#---------------------------------------------------#\n",
"JULIA_VERSION=\"1.8.2\"\n",
"JULIA_VERSION=\"1.8.5\"\n",
"JULIA_PACKAGES=\"IJulia Chamber\"\n",
"JULIA_NUM_THREADS=2\n",
"#---------------------------------------------------#\n",
Expand Down Expand Up @@ -371,6 +371,37 @@
"depth = 8e3\n",
"dataframe = chamber(composition, end_time, log_volume_km3, InitialConc_H2O, InitialConc_CO2, log_vfr, depth)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Save results to your Google Drive\n",
"To download the output files, mount your Google Drive by following these steps:\n",
"\n",
"1. Change the runtime type to Python.\n",
"\n",
" <img src=\"images/instructions_5.png\" height=260/> <img src=\"images/instructions_6.png\" height=220/>\n",
"\n",
"2. Run the code cell below.\n",
"3. Afterward, you can drag the desired output files into the Drive folder.\n",
"\n",
" <img src=\"images/instructions_7.png\" height=200/>\n",
"\n",
"\n",
"[Notice] Remember to change the runtime type back to Julia before running other Julia code cells."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# runtime type: Python\n",
"from google.colab import drive\n",
"drive.mount('/content/drive')"
]
}
],
"metadata": {
Expand Down

0 comments on commit 27180fd

Please sign in to comment.