8000 Realtime Notebook: Add cell to run the classification script as if from the command line by gdoubleyew · Pull Request #41 · brainiak/brainiak-aperture · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions notebooks/real-time/rtcloud_notebook.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,31 @@
"<iframe src=\"http://localhost:8889\" width=\"800\" height=\"600\"></iframe>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Alternate Step 3: Run the classification script from command line"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Instead of running the classification script from the web browser (as above), it can be run from the command line. The command below will run the sample.py script (of the real-time aperture notebook) as if running on the command line."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Run the classification script from the command line instead of from the browser interface\n",
"!python -u /Users/gwallace/src/github/brainiak-aperture/notebooks/real-time/sample.py \\\n",
"-c /Users/gwallace/src/github/brainiak/rt-cloud/web/conf/cfg_sub001_synthetic_day1_run1.toml"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ 73C4 -299,7 +324,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -313,7 +338,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.9"
"version": "3.7.11"
}
},
"nbformat": 4,
Expand Down
0