Skip to content

Commit 9c16348

Browse files
authored
fix notebooks again (#153)
1 parent 623e032 commit 9c16348

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

examples/cuda_e2e.ipynb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@
3232
{
3333
"cell_type": "code",
3434
"source": [
35-
"!BRANCH=\"${BRANCH:-main}\"\n",
36-
"!echo \"using BRANCH=$BRANCH\"\n",
3735
"!script_address=\"https://raw.githubusercontent.com/makslevental/mlir-python-extras/refs/heads/$BRANCH/scripts/get_latest_gpu_bindings.py\"\n",
3836
"!latest_cuda_version=$(curl $script_address | python -)\n",
3937
"!pip install -q mlir_python_bindings==$latest_cuda_version -f https://makslevental.github.io/wheels\n",
40-
"!pip install git+https://github.com/makslevental/mlir-python-extras@$BRANCH &> /dev/null"
38+
"!BRANCH=\"${BRANCH:-main}\" && pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
4139
],
4240
"metadata": {
4341
"colab": {

examples/mlir_python_extras.ipynb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@
2323
},
2424
"outputs": [],
2525
"source": [
26-
"!BRANCH=\"${BRANCH:-main}\"\n",
27-
"!echo \"using BRANCH=$BRANCH\"\n",
28-
"!pip install mlir-python-bindings -f https://makslevental.github.io/wheels &> /dev/null\n",
29-
"!pip install git+https://github.com/makslevental/mlir-python-extras@$BRANCH &> /dev/null"
26+
"!pip install -q mlir-python-bindings -f https://makslevental.github.io/wheels\n",
27+
"!BRANCH=\"${BRANCH:-main}\" && pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
3028
]
3129
},
3230
{

examples/vectorization_e2e.ipynb

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,29 @@
1616
},
1717
"cells": [
1818
{
19+
"metadata": {},
20+
"cell_type": "code",
21+
"outputs": [],
22+
"execution_count": null,
23+
"source": ""
24+
},
25+
{
26+
"metadata": {},
27+
"cell_type": "markdown",
28+
"source": [
29+
"# Welcome to `mlir-python-extras` enjoy your stay!\n",
30+
"\n",
31+
"more at https://github.com/makslevental/mlir-python-extras"
32+
]
33+
},
34+
{
35+
"metadata": {},
1936
"cell_type": "code",
20-
"execution_count": 1,
21-
"metadata": {
22-
"colab": {
23-
"base_uri": "https://localhost:8080/"
24-
},
25-
"id": "Xh-QUDWiX-FD",
26-
"outputId": "6865a63a-daa4-4610-e33a-721d37c0211f",
27-
"ExecuteTime": {
28-
"end_time": "2024-02-02T23:38:41.840251128Z",
29-
"start_time": "2024-02-02T23:38:31.521453852Z"
30-
}
31-
},
3237
"outputs": [],
38+
"execution_count": null,
3339
"source": [
34-
"!BRANCH=\"${BRANCH:-main}\"\n",
35-
"!echo \"using BRANCH=$BRANCH\"\n",
3640
"!pip install -q mlir-python-bindings -f https://makslevental.github.io/wheels\n",
37-
"!pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH"
41+
"!BRANCH=\"${BRANCH:-main}\" && pip install -q git+https://github.com/makslevental/mlir-python-extras@$BRANCH\n"
3842
]
3943
},
4044
{

0 commit comments

Comments
 (0)