Skip to content

Commit

Permalink
feat(create-anywidget): Set ANYWIDGET_HMR=1 in demo notebook (#470)
Browse files Browse the repository at this point in the history
* feat(create-anywidget): Set `ANYWIDGET_HMR=1` in demo notebook

* update snapshot
  • Loading branch information
manzt authored Mar 6, 2024
1 parent d154726 commit 9d1cc57
Show file tree
Hide file tree
Showing 3 changed files with 102 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/lazy-forks-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"create-anywidget": patch
---

Set `ANYWIDGET_HMR=1` in demo notebook
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -185,6 +194,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -388,6 +406,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -555,6 +582,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -723,6 +759,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -928,6 +973,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1099,6 +1153,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1302,6 +1365,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1469,6 +1541,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -1637,6 +1718,15 @@ pip install undefined
{
"content": "{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%env ANYWIDGET_HMR=1"
]
},
{
"cell_type": "code",
"execution_count": null,
Expand Down
7 changes: 7 additions & 0 deletions packages/create-anywidget/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,13 @@ pip install ${name}
let notebook = (name) =>
json_dumps({
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": ["%env ANYWIDGET_HMR=1"],
},
{
"cell_type": "code",
"execution_count": null,
Expand Down

0 comments on commit 9d1cc57

Please sign in to comment.