Skip to content

Commit

Permalink
Open an example using colab
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 8, 2024
1 parent 151f0d9 commit 8193ec2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<a href="https://twitter.com/PREPNexT_Lab"><img src="https://img.shields.io/twitter/follow/PREPNexT_Lab.svg?label=Follow&style=social" alt="Twitter Follow"></a>
<a href="https://github.com/PREP-NexT/PREP-SHOT"><img src="https://img.shields.io/github/license/PREP-NexT/PREP-SHOT.svg" alt="License"></a>
<a href="https://github.com/PREP-NexT/PREP-SHOT"><img src="https://badges.frapsoft.com/os/v1/open-source.svg?v=103" alt="Download"></a>
<a href="https://colab.research.google.com/github/PREP-NexT/PREP-SHOT/blob/main/example/single_node_with_hydro/main.ipynb"><img src="https://colab.research.google.com/assets/colab-badge.svg" alt="Open in Colab"></a>
</p>

<p align="center">
Expand Down
18 changes: 17 additions & 1 deletion example/single_node_with_hydro/main.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,21 @@
"## Run PREP-SHOT"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# If you are using Google Colab, uncomment the following lines and run the cell\n",
"# to download the repository and install the necessary packages.\n",
"\n",
"# !git clone https://github.com/PREP-NexT/PREP-SHOT.git\n",
"# !pip install -r requirements.txt\n",
"# import os\n",
"# os.chdir('/content/PREP-SHOT/example/single_node_with_hydro/')"
]
},
{
"cell_type": "code",
"execution_count": 1,
Expand All @@ -70,7 +85,8 @@
" 'cd ../../ && '\n",
" 'python run.py'\n",
")\n",
"log_ = subprocess.run(commands, shell=True, capture_output=True, text=True)"
"log_ = subprocess.run(commands, shell=True, capture_output=True, text=True)\n",
"print(log_.stderr)"
]
},
{
Expand Down

0 comments on commit 8193ec2

Please sign in to comment.