Skip to content

Commit

Permalink
Add pyodide version to console
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Jan 24, 2024
1 parent cf55b86 commit 2af0d96
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/templates/console.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
});
let { repr_shorten, BANNER, PyodideConsole } =
pyodide.pyimport("pyodide.console");
BANNER = "Welcome to the Pyodide terminal emulator 🐍\n" + BANNER;
BANNER = `Welcome to the Pyodide ${pyodide.version} terminal emulator 🐍\n` + BANNER;
const pyconsole = PyodideConsole(pyodide.globals);

const namespace = pyodide.globals.get("dict")();
Expand All @@ -122,7 +122,6 @@
`,
{ globals: namespace },
);

namespace.destroy();

const echo = (msg, ...opts) =>
Expand Down

0 comments on commit 2af0d96

Please sign in to comment.