Skip to content

Commit 9a2911c

Browse files
authored
Merge pull request #1055 from NeuromatchAcademy/staging
Staging
2 parents c898fc2 + 9af1edf commit 9a2911c

102 files changed

Lines changed: 235 additions & 202 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/actions/setup-ci-tools/stub_widgets.py

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,39 @@ def __getattr__(self, name):
8888

8989
stub = _StubModule("ipywidgets")
9090
stub.widgets = stub # support: from ipywidgets import widgets
91+
92+
# --- Output widget stub that captures display() ---
93+
class _NoOpOutput:
94+
"""Stub for widgets.Output that captures display() calls."""
95+
def __init__(self):
96+
self.children = []
97+
self._output_buffer = []
98+
self._original_display = None
99+
100+
def __enter__(self):
101+
# Patch IPython.display.display temporarily to capture output
102+
from IPython import display as ipy_display
103+
self._original_display = ipy_display.display
104+
def _capturing_display(*objs, **kwargs):
105+
self._output_buffer.extend(objs)
106+
ipy_display.display = _capturing_display
107+
return self
108+
109+
def __exit__(self, *args):
110+
# Restore original display and store captured output in children
111+
from IPython import display as ipy_display
112+
if self._original_display is not None:
113+
ipy_display.display = self._original_display
114+
if self._output_buffer:
115+
self.children = list(self._output_buffer)
116+
117+
def __repr__(self):
118+
return f"<_NoOpOutput children={self.children}>"
119+
120+
121+
# Register Output class on the stub
122+
stub.Output = _NoOpOutput
123+
91124
sys.modules["ipywidgets"] = stub
92125
sys.modules["ipywidgets.widgets"] = stub
93126

.github/workflows/publish-book.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Set up Python
4545
uses: actions/setup-python@v6
4646
with:
47-
python-version: "3.11"
47+
python-version: "3.10"
4848

4949
- name: Install CI tools
5050
run: |

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ pyngrok
3535
pytorch-pretrained-biggan
3636
python-Levenshtein
3737
textattack
38-
tokenizers
38+
tokenizers==0.22.2
3939
transformers
4040
vibecheck

tutorials/Bonus_DeployModels/Bonus_Tutorial1.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "116852b5",
5+
"id": "39d077f2",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -24,7 +24,7 @@
2424
"\n",
2525
"__Content creators:__ Sam Ray, Vladimir Haltakov, Konrad Kording\n",
2626
"\n",
27-
"__Production editors:__ Spiros Chavlis"
27+
"__Production editors:__ Spiros Chavlis, Konstantine Tsafatinos"
2828
]
2929
},
3030
{
@@ -736,7 +736,7 @@
736736
"* **Model** - this is the representation of the data that you want to interact with.\n",
737737
"* **View-Model** - this is the part that handles the application state and that transforms the data from the Model to a representation suitable for display and back.\n",
738738
"\n",
739-
"<img src=\"https://raw.githubusercontent.com/NeuromatchAcademy/course-content-dl/main/tutorials/W2D4_GenerativeModels/static/deploy.png\">"
739+
"<img src=\"https://raw.githubusercontent.com/NeuromatchAcademy/course-content-dl/main/tutorials/Bonus_DeployModels/static/deploy.png\">"
740740
]
741741
},
742742
{

tutorials/Bonus_DeployModels/instructor/Bonus_Tutorial1.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "6467a9ee",
5+
"id": "0727c202",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -24,7 +24,7 @@
2424
"\n",
2525
"__Content creators:__ Sam Ray, Vladimir Haltakov, Konrad Kording\n",
2626
"\n",
27-
"__Production editors:__ Spiros Chavlis"
27+
"__Production editors:__ Spiros Chavlis, Konstantine Tsafatinos"
2828
]
2929
},
3030
{
@@ -736,7 +736,7 @@
736736
"* **Model** - this is the representation of the data that you want to interact with.\n",
737737
"* **View-Model** - this is the part that handles the application state and that transforms the data from the Model to a representation suitable for display and back.\n",
738738
"\n",
739-
"<img src=\"https://raw.githubusercontent.com/NeuromatchAcademy/course-content-dl/main/tutorials/W2D4_GenerativeModels/static/deploy.png\">"
739+
"<img src=\"https://raw.githubusercontent.com/NeuromatchAcademy/course-content-dl/main/tutorials/Bonus_DeployModels/static/deploy.png\">"
740740
]
741741
},
742742
{

tutorials/Bonus_DeployModels/student/Bonus_Tutorial1.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "c5ed110b",
5+
"id": "4dd9178c",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -24,7 +24,7 @@
2424
"\n",
2525
"__Content creators:__ Sam Ray, Vladimir Haltakov, Konrad Kording\n",
2626
"\n",
27-
"__Production editors:__ Spiros Chavlis"
27+
"__Production editors:__ Spiros Chavlis, Konstantine Tsafatinos"
2828
]
2929
},
3030
{
@@ -736,7 +736,7 @@
736736
"* **Model** - this is the representation of the data that you want to interact with.\n",
737737
"* **View-Model** - this is the part that handles the application state and that transforms the data from the Model to a representation suitable for display and back.\n",
738738
"\n",
739-
"<img src=\"https://raw.githubusercontent.com/NeuromatchAcademy/course-content-dl/main/tutorials/W2D4_GenerativeModels/static/deploy.png\">"
739+
"<img src=\"https://raw.githubusercontent.com/NeuromatchAcademy/course-content-dl/main/tutorials/Bonus_DeployModels/static/deploy.png\">"
740740
]
741741
},
742742
{

tutorials/Schedule/daily_schedules.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212

1313
* Week 2
1414
* Monday: Regularization
15-
* Tuesday: Convnets and DL Thinking 1
16-
* Wednesday: Modern Convnets
17-
* Thursday: Generative models (VAEs and Diffusion models)
18-
* Friday: Attention and Transformers
15+
* Tuesday: Convnets
16+
* Wednesday: Generative models and DL Discussion 1
17+
* Thursday: Diffusion Generative models
18+
* Friday: Time Series and Natural Language Processing
1919

2020
* Week 3: Advanced concepts
21-
* Monday: Time Series and Natural Language Processing
22-
* Tuesday: DL Thinking 2 & Half Projects Day (Abstract Writing)
21+
* Monday: Attention and Transformers
22+
* Tuesday: DL Discussion 2 & Half Projects Day (Abstract Writing)
2323
* Wednesday: Unsupervised and Self-supervised learning
2424
* Thursday: Basic Reinforcement Learning
25-
* Friday: Reinforcement Learning for Games & DL Thinking 3
25+
* Friday: Advanced Reinforcement Learning & DL Discussion 3
2626
----
2727

2828
## Daily coursework schedule

tutorials/W1D1_BasicsAndPytorch/W1D1_Tutorial1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "c0c35c4e",
5+
"id": "1d2b4d47",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -30,7 +30,7 @@
3030
"\n",
3131
"__Content editors:__ Anoop Kulkarni, Spiros Chavlis\n",
3232
"\n",
33-
"__Production editors:__ Arush Tagade, Spiros Chavlis"
33+
"__Production editors:__ Arush Tagade, Spiros Chavlis, Konstantine Tsafatinos"
3434
]
3535
},
3636
{

tutorials/W1D1_BasicsAndPytorch/instructor/W1D1_Tutorial1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "4a3f6385",
5+
"id": "6f4da5a9",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -30,7 +30,7 @@
3030
"\n",
3131
"__Content editors:__ Anoop Kulkarni, Spiros Chavlis\n",
3232
"\n",
33-
"__Production editors:__ Arush Tagade, Spiros Chavlis"
33+
"__Production editors:__ Arush Tagade, Spiros Chavlis, Konstantine Tsafatinos"
3434
]
3535
},
3636
{

tutorials/W1D1_BasicsAndPytorch/student/W1D1_Tutorial1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "be2cadcd",
5+
"id": "0cc1829e",
66
"metadata": {
77
"colab_type": "text",
88
"execution": {},
@@ -30,7 +30,7 @@
3030
"\n",
3131
"__Content editors:__ Anoop Kulkarni, Spiros Chavlis\n",
3232
"\n",
33-
"__Production editors:__ Arush Tagade, Spiros Chavlis"
33+
"__Production editors:__ Arush Tagade, Spiros Chavlis, Konstantine Tsafatinos"
3434
]
3535
},
3636
{

0 commit comments

Comments
 (0)