Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add snippets #103

Merged
merged 2 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
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
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