From 8d9354e1a38fa46d92a35a3cab1010358d9f1a58 Mon Sep 17 00:00:00 2001 From: Joe Hamman Date: Tue, 1 Apr 2025 15:17:58 -0700 Subject: [PATCH 1/2] Update repl.js --- src/components/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/repl.js b/src/components/repl.js index 2350b1cf4..7ed854560 100644 --- a/src/components/repl.js +++ b/src/components/repl.js @@ -7,7 +7,7 @@ import { nord } from 'react-syntax-highlighter/dist/cjs/styles/prism' //TODO: Or wait until jupyterlite has streamlined the installation process of user-specified packages // See: https://github.com/jupyterlite/jupyterlite/issues/151 -const preRunCode = `%23%20Import%20packages%0Aimport%20xarray%20as%20xr%0Aimport%20numpy%20as%20np%0Aimport%20pandas%20as%20pd` +const preRunCode = `%23%20Import%20packages%0Aimport%20xarray%20as%20xr%0Aimport%20numpy%20as%20np%0Aimport%20pandas%20as%20pd%0Aimport%matplotlib%20as%20mpl` // https://github.com/jobovy/jupyterlite-repl-prerun const jupyterliteInstance = 'https://jupyterlite.github.io/demo/repl' From 64b67b6ce48b65aa685cd277ff959742b4c05eea Mon Sep 17 00:00:00 2001 From: Joe Hamman Date: Tue, 1 Apr 2025 15:20:17 -0700 Subject: [PATCH 2/2] fixup --- src/components/repl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/repl.js b/src/components/repl.js index 7ed854560..85c6d8c0b 100644 --- a/src/components/repl.js +++ b/src/components/repl.js @@ -7,7 +7,7 @@ import { nord } from 'react-syntax-highlighter/dist/cjs/styles/prism' //TODO: Or wait until jupyterlite has streamlined the installation process of user-specified packages // See: https://github.com/jupyterlite/jupyterlite/issues/151 -const preRunCode = `%23%20Import%20packages%0Aimport%20xarray%20as%20xr%0Aimport%20numpy%20as%20np%0Aimport%20pandas%20as%20pd%0Aimport%matplotlib%20as%20mpl` +const preRunCode = `%23%20Import%20packages%0Aimport%20xarray%20as%20xr%0Aimport%20numpy%20as%20np%0Aimport%20pandas%20as%20pd%0Aimport%20matplotlib%20as%20mpl` // https://github.com/jobovy/jupyterlite-repl-prerun const jupyterliteInstance = 'https://jupyterlite.github.io/demo/repl'