Skip to content

async-xeus-python - #29

Merged
JohanMabille merged 10 commits into
jupyter-xeus:mainfrom
DerThorsten:akernel
Apr 13, 2026
Merged

async-xeus-python#29
JohanMabille merged 10 commits into
jupyter-xeus:mainfrom
DerThorsten:akernel

Conversation

@DerThorsten

Copy link
Copy Markdown
Member

No description provided.

@DerThorsten
DerThorsten marked this pull request as ready for review April 13, 2026 07:46

def __init__(self):
self.use_lock = True
self.run_cell_lock = asyncio.Lock()

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.

Is there a plan to support non locking calls? I don't see use_lock set anywhere else hee, nor in the companion PR in xeus-python.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We can remove it. I chagned this value from a running interpreter for experimentation

Comment thread xeus_python_shell/shell.py Outdated
super(LiteHistoryManager, self).__init__(shell=shell, config=config, **traits)

class XPythonLoopRunner:
"""A dummy loop runner for usage in XPywrapShell"""

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.

I guess you meant XPythonShell?

Comment thread xeus_python_shell/shell.py Outdated

async def run_cell_async(self, *args, **kwargs):
coro = super().run_cell_async(*args, **kwargs)
return

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.

Isn't it masked by the function defined line 135?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

indeed, I think this is some copy-paste-whatever lefteover that gets overwritten in 135.
good catch

@JohanMabille
JohanMabille merged commit 55ebc00 into jupyter-xeus:main Apr 13, 2026
2 checks passed
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