diff --git a/.changeset/lovely-roses-dance.md b/.changeset/lovely-roses-dance.md new file mode 100644 index 00000000..b9ca100c --- /dev/null +++ b/.changeset/lovely-roses-dance.md @@ -0,0 +1,7 @@ +--- +'thebe-react': minor +'thebe-lite': minor +'demo-simple': minor +--- + +Clients no longer have to explicitly supply `litePluginSettings` unless they explicitly want to override them. This simplifies upgrades as clients should just bump packages, and the correct plugin settings for the bundled pyodide kernel will be applied by default. diff --git a/.changeset/selfish-feet-travel.md b/.changeset/selfish-feet-travel.md new file mode 100644 index 00000000..5211bf2e --- /dev/null +++ b/.changeset/selfish-feet-travel.md @@ -0,0 +1,5 @@ +--- +'thebe-lite': minor +--- + +Upgrading `@jupyterlite/pyodide-kernel-extension` to fix ipywidget disconnect issues. diff --git a/apps/simple/static/index.html b/apps/simple/static/index.html index 322d122e..cf7460bc 100644 --- a/apps/simple/static/index.html +++ b/apps/simple/static/index.html @@ -19,18 +19,6 @@ } } - diff --git a/apps/simple/static/ipywidgets-lite.html b/apps/simple/static/ipywidgets-lite.html index ae631c04..576ab90f 100644 --- a/apps/simple/static/ipywidgets-lite.html +++ b/apps/simple/static/ipywidgets-lite.html @@ -11,18 +11,6 @@ useBinder: false } - - ; + litePluginSettings?: Record; + enableMemoryStorage?: boolean; + settingsStorageDrivers?: string[]; }; export interface ThebeLiteGlobal { diff --git a/packages/react/src/ThebeServerProvider.tsx b/packages/react/src/ThebeServerProvider.tsx index 10576114..b0a40f0b 100644 --- a/packages/react/src/ThebeServerProvider.tsx +++ b/packages/react/src/ThebeServerProvider.tsx @@ -92,16 +92,7 @@ export function ThebeServerProvider({ setConnecting(true); if (customConnectFn) customConnectFn(server); else if (useBinder) server.connectToServerViaBinder(customRepoProviders); - else if (useJupyterLite) - server.connectToJupyterLiteServer({ - litePluginSettings: { - '@jupyterlite/pyodide-kernel-extension:kernel': { - pipliteUrls: ['https://unpkg.com/@jupyterlite/pyodide-kernel@0.4.2/pypi/all.json'], - pipliteWheelUrl: - 'https://unpkg.com/@jupyterlite/pyodide-kernel@0.4.2/pypi/piplite-0.4.2-py3-none-any.whl', - }, - }, - }); + else if (useJupyterLite) server.connectToJupyterLiteServer(); else server.connectToJupyterServer(); server.ready.then(