Skip to content

feat: add python REPL [AI-written] - #96

Open
VsevolodX wants to merge 14 commits into
mainfrom
feature/SOF-7961
Open

feat: add python REPL [AI-written]#96
VsevolodX wants to merge 14 commits into
mainfrom
feature/SOF-7961

Conversation

@VsevolodX

Copy link
Copy Markdown
Member

No description provided.

@VsevolodX VsevolodX changed the title feat: add python REPL feat: add python REPL [AI-written] Jul 30, 2026
VsevolodX and others added 5 commits August 5, 2026 23:21
# Conflicts:
#	dist/other/codemirror/CodeMirror.js
#	dist/other/codemirror/index.d.ts
#	dist/other/codemirror/index.js
#	dist/other/iframe-messaging/IframeToFromHostMessageHandler.d.ts
#	dist/other/iframe-messaging/IframeToFromHostMessageHandler.js
#	dist/theme/theme.d.ts
#	dist/theme/theme.js
…release]

PyodideSession had three protected hooks a consumer subclassed, which made its
protected surface an undeclared cross-package API — materials-designer reached
into it in 17 places. Take setupNamespace/beforeRun/afterRun as optional spec
callbacks instead, so wiring reads in one expression at the call site and this
class exposes nothing protected. stageWheels becomes public for callers with
their own installer; setWheelFilenames replaces mutating spec from a subclass.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
*
* Browser-side there can be only one live instance — see {@link sessionOwningTheInterpreter}.
*/
export class PyodideSession implements PythonSessionInterface {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be in a separate repo to be served from pyodide.mat3ra.com (mat3ra.github.io/pyodide)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants