Skip to content

Commit

Permalink
feat(create-anywidget): Set ANYWIDGET_HMR=1 in demo notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt committed Mar 6, 2024
1 parent d154726 commit e817f31
Show file tree
Hide file tree
Showing 2 changed files with 12 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
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 e817f31

Please sign in to comment.