Skip to content

async-kernel#697

Merged
JohanMabille merged 158 commits into
jupyter-xeus:mainfrom
DerThorsten:async_and_fixes2
Apr 14, 2026
Merged

async-kernel#697
JohanMabille merged 158 commits into
jupyter-xeus:mainfrom
DerThorsten:async_and_fixes2

Conversation

@DerThorsten

@DerThorsten DerThorsten commented Mar 18, 2026

Copy link
Copy Markdown
Member

toplevel awaits /async kernel:

@SylvainCorlay

Copy link
Copy Markdown
Member

Since the fixes were merged, we should probably rebase this one now.

@DerThorsten DerThorsten changed the title Async and fixes2 async-kernel Apr 9, 2026
@DerThorsten DerThorsten marked this pull request as ready for review April 9, 2026 10:22
@DerThorsten DerThorsten requested a review from JohanMabille April 9, 2026 10:23

@JohanMabille JohanMabille left a comment

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.

Could you remove the extra empty lines added in this PR?

#define XEUS_PYTHON_HIDDEN
#else
#define XEUS_PYTHON_HIDDEN __attribute__ ((visibility ("hidden")))
#endif No newline at end of file

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.

Not to be done in this PR, but I think we should refactor the visibility of the symbols:

  • make them private by default in the CMakeLists.txt
  • define XEUS_PYTHON_API to __attribute__((visibility("default")) on Unix platforms.

And then remove XPYT_FORCE_PYBIND11_EXPORT and XEUS_PYTHON_HIDDEN

Comment thread src/main.cpp
status = PyConfig_SetBytesArgv(&config, argc, argv);
if (PyStatus_Exception(status)) {
std::cerr << "Error:" << status.err_msg << std::endl;
}

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.

Why removing this?

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.

I think I confused it with debugging info while cleaning, adding it back now

Comment thread include/xeus-python/xaserver.hpp Outdated
namespace xpyt
{

XEUS_PYTHON_API XPYT_FORCE_PYBIND11_EXPORT xeus::xkernel::server_builder make_xaserver_factory(py::dict globals);

@JohanMabille JohanMabille Apr 9, 2026

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.

What about renaming this function into make_async_server_factory ? (That would be consistent with xasync_runner).

@JohanMabille

Copy link
Copy Markdown
Member

@DerThorsten

Copy link
Copy Markdown
Member Author

@JohanMabille JohanMabille left a comment

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.

LGTM when the CI jobs use xeus-python-shell from conda-forge.

Comment thread .github/workflows/main.yml Outdated
environment-file: environment-dev.yml

- name: Install xeus-python-shell from GitHub
run: pip install git+https://github.com/DerThorsten/xeus-python-shell.git@akernel

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've just merged the xeus-python-shell-feedstock, should be available soon

@JohanMabille JohanMabille merged commit 20b5bd9 into jupyter-xeus:main Apr 14, 2026
15 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.

5 participants