Skip to content

Commit

Permalink
add snippets (#103)
Browse files Browse the repository at this point in the history
* add snippets

* Process tutorial notebooks

---------

Co-authored-by: GitHub Action <action@github.com>
  • Loading branch information
spirosChv and actions-user committed Jun 27, 2023
1 parent 54aa015 commit 7153d8b
Show file tree
Hide file tree
Showing 3 changed files with 324 additions and 3 deletions.
109 changes: 108 additions & 1 deletion tutorials/W0D3_LinearAlgebra/W0D3_Tutorial3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,35 @@
"# Setup"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Install and import feedback gadget\n",
"\n",
"!pip3 install vibecheck datatops --quiet\n",
"\n",
"from vibecheck import DatatopsContentReviewContainer\n",
"def content_review(notebook_section: str):\n",
" return DatatopsContentReviewContainer(\n",
" \"\", # No text prompt\n",
" notebook_section,\n",
" {\n",
" \"url\": \"https://pmyvdlilci.execute-api.us-east-1.amazonaws.com/klab\",\n",
" \"name\": \"neuromatch-precourse\",\n",
" \"user_key\": \"8zxfvwxw\",\n",
" },\n",
" ).render()\n",
"\n",
"\n",
"feedback_prefix = \"W0D3_Bonus\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -311,6 +340,19 @@
"display(tabs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_A_neural_circuit_Video\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -501,6 +543,19 @@
" plot_circuit_responses(a, W)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Implementing_the_circuit_Exercise\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -637,6 +692,19 @@
"display(tabs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Looking_at_activity_along_an_eigenvector_Video\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -759,6 +827,19 @@
"\"\"\";"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Changing_the_eigenvalue_Interactive_Demo\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -824,6 +905,19 @@
"display(tabs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Understanding_general_dynamics_using_eigenstuff_Video\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -1009,6 +1103,19 @@
"\"\"\";"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Changing_both_eigenvalues_Interactive_Demo\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -1074,7 +1181,7 @@
"\n",
"<br>\n",
"\n",
"Importantly, these ideas extend far beyond our toy neural circuit. Discrete dynamical systems with the same structure of update rule are common. While the exact dependencies on eigenvalues will change, we will see that we can still use eigenvalues/vectors to understand continuous dynamical systems in W2D2: Linear Dynamics."
"Importantly, these ideas extend far beyond our toy neural circuit. Discrete dynamical systems with the same structure of update rule are common. While the exact dependencies on eigenvalues will change, we will see that we can still use eigenvalues/vectors to understand continuous dynamical systems in [Linear Systems day](https://compneuro.neuromatch.io/tutorials/W2D2_LinearSystems/chapter_title.html)."
]
}
],
Expand Down
109 changes: 108 additions & 1 deletion tutorials/W0D3_LinearAlgebra/instructor/W0D3_Tutorial3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,35 @@
"# Setup"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Install and import feedback gadget\n",
"\n",
"!pip3 install vibecheck datatops --quiet\n",
"\n",
"from vibecheck import DatatopsContentReviewContainer\n",
"def content_review(notebook_section: str):\n",
" return DatatopsContentReviewContainer(\n",
" \"\", # No text prompt\n",
" notebook_section,\n",
" {\n",
" \"url\": \"https://pmyvdlilci.execute-api.us-east-1.amazonaws.com/klab\",\n",
" \"name\": \"neuromatch-precourse\",\n",
" \"user_key\": \"8zxfvwxw\",\n",
" },\n",
" ).render()\n",
"\n",
"\n",
"feedback_prefix = \"W0D3_Bonus\""
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -311,6 +340,19 @@
"display(tabs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_A_neural_circuit_Video\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -503,6 +545,19 @@
" plot_circuit_responses(a, W)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Implementing_the_circuit_Exercise\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -639,6 +694,19 @@
"display(tabs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Looking_at_activity_along_an_eigenvector_Video\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -761,6 +829,19 @@
"\"\"\";"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Changing_the_eigenvalue_Interactive_Demo\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -826,6 +907,19 @@
"display(tabs)"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Understanding_general_dynamics_using_eigenstuff_Video\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -1011,6 +1105,19 @@
"\"\"\";"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"# @title Submit your feedback\n",
"content_review(f\"{feedback_prefix}_Changing_both_eigenvalues_Interactive_Demo\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -1076,7 +1183,7 @@
"\n",
"<br>\n",
"\n",
"Importantly, these ideas extend far beyond our toy neural circuit. Discrete dynamical systems with the same structure of update rule are common. While the exact dependencies on eigenvalues will change, we will see that we can still use eigenvalues/vectors to understand continuous dynamical systems in W2D2: Linear Dynamics."
"Importantly, these ideas extend far beyond our toy neural circuit. Discrete dynamical systems with the same structure of update rule are common. While the exact dependencies on eigenvalues will change, we will see that we can still use eigenvalues/vectors to understand continuous dynamical systems in [Linear Systems day](https://compneuro.neuromatch.io/tutorials/W2D2_LinearSystems/chapter_title.html)."
]
}
],
Expand Down
Loading

0 comments on commit 7153d8b

Please sign in to comment.