Skip to content

Commit

Permalink
update notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremymanning committed Jul 23, 2023
1 parent 5d30814 commit c72fbbf
Show file tree
Hide file tree
Showing 107 changed files with 5,197 additions and 107 deletions.
4 changes: 3 additions & 1 deletion chatify/process_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@


def get_tutorial_notebooks(basedir):
return lsdir(os.path.join(basedir, 'tutorials', '*', 'student', '*Tutorial*.ipynb'))
return lsdir(os.path.join(basedir, 'tutorials', '*', 'student', '*Tutorial*.ipynb')) + \
lsdir(os.path.join(basedir, 'tutorials', '*', 'instructor', '*Tutorial*.ipynb')) + \
lsdir(os.path.join(basedir, 'tutorials', '*', '*Tutorial*.ipynb'))


def chatified(fname):
Expand Down
50 changes: 49 additions & 1 deletion tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/NeuromatchAcademy/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
"<a href=\"https://colab.research.google.com/github/ContextLab/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/ContextLab/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
]
},
{
Expand Down Expand Up @@ -80,6 +80,54 @@
"# Setup"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"**⚠ Experimental LLM-enhanced tutorial ⚠**\n",
"\n",
"This notebook includes Neuromatch's experimental [Chatify](https://github.com/ContextLab/chatify) 🤖 functionality. The Chatify notebook extension adds support for a large language model-based \"coding tutor\" to the materials. The tutor provides automatically generated text to help explain any code cell in this notebook.\n",
"\n",
"Note that using Chatify may cause breaking changes and/or provide incorrect or misleading information. If you wish to proceed by installing and enabling the Chatify extension, you should run the next two code blocks (hidden by default). If you do *not* want to use this experimental version of the Neuromatch materials, please use the [stable](https://compneuro.neuromatch.io/tutorials/intro.html) materials instead.\n",
"\n",
"To use the Chatify helper, insert the `%%explain` magic command at the start of any code cell and then run it (shift + enter) to access an interface for receiving LLM-based assitance. You can then select different options from the dropdown menus depending on what sort of assitance you want. To disable Chatify and run the code block as usual, simply delete the `%%explain` command and re-run the cell.\n",
"\n",
"Note that, by default, all of Chatify's responses are generated locally. This often takes several minutes per response. Once you click the \"Submit request\" button, just be patient-- stuff is happening even if you can't see it right away!\n",
"\n",
"Thanks for giving Chatify a try! Love it? Hate it? Either way, we'd love to hear from you about your Chatify experience! Please consider filling out our [brief survey](https://forms.gle/jNq85KVvNwj1JHZV9) to provide feedback and help us make Chatify more awesome!\n",
"\n",
"**Run the next two cells to install and configure Chatify...**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"%pip install -q davos\n",
"import davos\n",
"davos.config.suppress_stdout = True"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"smuggle chatify # pip: git+https://github.com/ContextLab/chatify.git\n",
"%load_ext chatify"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
50 changes: 49 additions & 1 deletion tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/NeuromatchAcademy/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
"<a href=\"https://colab.research.google.com/github/ContextLab/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/ContextLab/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
]
},
{
Expand Down Expand Up @@ -69,6 +69,54 @@
"# Setup"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"**⚠ Experimental LLM-enhanced tutorial ⚠**\n",
"\n",
"This notebook includes Neuromatch's experimental [Chatify](https://github.com/ContextLab/chatify) 🤖 functionality. The Chatify notebook extension adds support for a large language model-based \"coding tutor\" to the materials. The tutor provides automatically generated text to help explain any code cell in this notebook.\n",
"\n",
"Note that using Chatify may cause breaking changes and/or provide incorrect or misleading information. If you wish to proceed by installing and enabling the Chatify extension, you should run the next two code blocks (hidden by default). If you do *not* want to use this experimental version of the Neuromatch materials, please use the [stable](https://compneuro.neuromatch.io/tutorials/intro.html) materials instead.\n",
"\n",
"To use the Chatify helper, insert the `%%explain` magic command at the start of any code cell and then run it (shift + enter) to access an interface for receiving LLM-based assitance. You can then select different options from the dropdown menus depending on what sort of assitance you want. To disable Chatify and run the code block as usual, simply delete the `%%explain` command and re-run the cell.\n",
"\n",
"Note that, by default, all of Chatify's responses are generated locally. This often takes several minutes per response. Once you click the \"Submit request\" button, just be patient-- stuff is happening even if you can't see it right away!\n",
"\n",
"Thanks for giving Chatify a try! Love it? Hate it? Either way, we'd love to hear from you about your Chatify experience! Please consider filling out our [brief survey](https://forms.gle/jNq85KVvNwj1JHZV9) to provide feedback and help us make Chatify more awesome!\n",
"\n",
"**Run the next two cells to install and configure Chatify...**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"%pip install -q davos\n",
"import davos\n",
"davos.config.suppress_stdout = True"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"smuggle chatify # pip: git+https://github.com/ContextLab/chatify.git\n",
"%load_ext chatify"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
50 changes: 49 additions & 1 deletion tutorials/Bonus_Autoencoders/Bonus_Tutorial3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial3.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/NeuromatchAcademy/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial3.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
"<a href=\"https://colab.research.google.com/github/ContextLab/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial3.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/ContextLab/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial3.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
]
},
{
Expand Down Expand Up @@ -71,6 +71,54 @@
"# Setup"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"**⚠ Experimental LLM-enhanced tutorial ⚠**\n",
"\n",
"This notebook includes Neuromatch's experimental [Chatify](https://github.com/ContextLab/chatify) 🤖 functionality. The Chatify notebook extension adds support for a large language model-based \"coding tutor\" to the materials. The tutor provides automatically generated text to help explain any code cell in this notebook.\n",
"\n",
"Note that using Chatify may cause breaking changes and/or provide incorrect or misleading information. If you wish to proceed by installing and enabling the Chatify extension, you should run the next two code blocks (hidden by default). If you do *not* want to use this experimental version of the Neuromatch materials, please use the [stable](https://compneuro.neuromatch.io/tutorials/intro.html) materials instead.\n",
"\n",
"To use the Chatify helper, insert the `%%explain` magic command at the start of any code cell and then run it (shift + enter) to access an interface for receiving LLM-based assitance. You can then select different options from the dropdown menus depending on what sort of assitance you want. To disable Chatify and run the code block as usual, simply delete the `%%explain` command and re-run the cell.\n",
"\n",
"Note that, by default, all of Chatify's responses are generated locally. This often takes several minutes per response. Once you click the \"Submit request\" button, just be patient-- stuff is happening even if you can't see it right away!\n",
"\n",
"Thanks for giving Chatify a try! Love it? Hate it? Either way, we'd love to hear from you about your Chatify experience! Please consider filling out our [brief survey](https://forms.gle/jNq85KVvNwj1JHZV9) to provide feedback and help us make Chatify more awesome!\n",
"\n",
"**Run the next two cells to install and configure Chatify...**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"%pip install -q davos\n",
"import davos\n",
"davos.config.suppress_stdout = True"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"smuggle chatify # pip: git+https://github.com/ContextLab/chatify.git\n",
"%load_ext chatify"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
50 changes: 49 additions & 1 deletion tutorials/Bonus_Autoencoders/instructor/Bonus_Tutorial1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/NeuromatchAcademy/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
"<a href=\"https://colab.research.google.com/github/ContextLab/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/ContextLab/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial1.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
]
},
{
Expand Down Expand Up @@ -80,6 +80,54 @@
"# Setup"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"**⚠ Experimental LLM-enhanced tutorial ⚠**\n",
"\n",
"This notebook includes Neuromatch's experimental [Chatify](https://github.com/ContextLab/chatify) 🤖 functionality. The Chatify notebook extension adds support for a large language model-based \"coding tutor\" to the materials. The tutor provides automatically generated text to help explain any code cell in this notebook.\n",
"\n",
"Note that using Chatify may cause breaking changes and/or provide incorrect or misleading information. If you wish to proceed by installing and enabling the Chatify extension, you should run the next two code blocks (hidden by default). If you do *not* want to use this experimental version of the Neuromatch materials, please use the [stable](https://compneuro.neuromatch.io/tutorials/intro.html) materials instead.\n",
"\n",
"To use the Chatify helper, insert the `%%explain` magic command at the start of any code cell and then run it (shift + enter) to access an interface for receiving LLM-based assitance. You can then select different options from the dropdown menus depending on what sort of assitance you want. To disable Chatify and run the code block as usual, simply delete the `%%explain` command and re-run the cell.\n",
"\n",
"Note that, by default, all of Chatify's responses are generated locally. This often takes several minutes per response. Once you click the \"Submit request\" button, just be patient-- stuff is happening even if you can't see it right away!\n",
"\n",
"Thanks for giving Chatify a try! Love it? Hate it? Either way, we'd love to hear from you about your Chatify experience! Please consider filling out our [brief survey](https://forms.gle/jNq85KVvNwj1JHZV9) to provide feedback and help us make Chatify more awesome!\n",
"\n",
"**Run the next two cells to install and configure Chatify...**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"%pip install -q davos\n",
"import davos\n",
"davos.config.suppress_stdout = True"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"smuggle chatify # pip: git+https://github.com/ContextLab/chatify.git\n",
"%load_ext chatify"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
50 changes: 49 additions & 1 deletion tutorials/Bonus_Autoencoders/instructor/Bonus_Tutorial2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"id": "view-in-github"
},
"source": [
"<a href=\"https://colab.research.google.com/github/NeuromatchAcademy/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/NeuromatchAcademy/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
"<a href=\"https://colab.research.google.com/github/ContextLab/course-content/blob/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a> &nbsp; <a href=\"https://kaggle.com/kernels/welcome?src=https://raw.githubusercontent.com/ContextLab/course-content/main/tutorials/Bonus_Autoencoders/Bonus_Tutorial2.ipynb\" target=\"_parent\"><img src=\"https://kaggle.com/static/images/open-in-kaggle.svg\" alt=\"Open in Kaggle\"/></a>"
]
},
{
Expand Down Expand Up @@ -69,6 +69,54 @@
"# Setup"
]
},
{
"cell_type": "markdown",
"metadata": {
"execution": {}
},
"source": [
"**⚠ Experimental LLM-enhanced tutorial ⚠**\n",
"\n",
"This notebook includes Neuromatch's experimental [Chatify](https://github.com/ContextLab/chatify) 🤖 functionality. The Chatify notebook extension adds support for a large language model-based \"coding tutor\" to the materials. The tutor provides automatically generated text to help explain any code cell in this notebook.\n",
"\n",
"Note that using Chatify may cause breaking changes and/or provide incorrect or misleading information. If you wish to proceed by installing and enabling the Chatify extension, you should run the next two code blocks (hidden by default). If you do *not* want to use this experimental version of the Neuromatch materials, please use the [stable](https://compneuro.neuromatch.io/tutorials/intro.html) materials instead.\n",
"\n",
"To use the Chatify helper, insert the `%%explain` magic command at the start of any code cell and then run it (shift + enter) to access an interface for receiving LLM-based assitance. You can then select different options from the dropdown menus depending on what sort of assitance you want. To disable Chatify and run the code block as usual, simply delete the `%%explain` command and re-run the cell.\n",
"\n",
"Note that, by default, all of Chatify's responses are generated locally. This often takes several minutes per response. Once you click the \"Submit request\" button, just be patient-- stuff is happening even if you can't see it right away!\n",
"\n",
"Thanks for giving Chatify a try! Love it? Hate it? Either way, we'd love to hear from you about your Chatify experience! Please consider filling out our [brief survey](https://forms.gle/jNq85KVvNwj1JHZV9) to provide feedback and help us make Chatify more awesome!\n",
"\n",
"**Run the next two cells to install and configure Chatify...**"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"%pip install -q davos\n",
"import davos\n",
"davos.config.suppress_stdout = True"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"cellView": "form",
"execution": {}
},
"outputs": [],
"source": [
"smuggle chatify # pip: git+https://github.com/ContextLab/chatify.git\n",
"%load_ext chatify"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
Loading

0 comments on commit c72fbbf

Please sign in to comment.