Skip to content

Commit 084c1c8

Browse files
authored
Upgrade (#693)
* Changes required for handshake pattern * Upgraded to xeus 6
1 parent f37f425 commit 084c1c8

17 files changed

Lines changed: 44 additions & 35 deletions

.github/workflows/deploy-github-page.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: |
4343
micromamba create \
4444
-f environment-wasm-host.yml --platform=emscripten-wasm32 \
45-
-c https://prefix.dev/emscripten-forge-dev \
45+
-c https://prefix.dev/emscripten-forge-4x \
4646
-c https://prefix.dev/conda-forge
4747
4848
set -eux

environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- ninja
99
- cmake < 4 # TODO: remove pin on CMake
1010
# Host dependencies
11-
- xeus-zmq>=3.1,<4.0
11+
- xeus-zmq>=4,<5
1212
- nlohmann_json=3.12.0
1313
- pybind11>=2.6.1,<3.0
1414
- pybind11_json>=0.2.6,<0.3

environment-wasm-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
name: xeus-python-wasm-build
22
channels:
3-
- https://prefix.dev/emscripten-forge-dev
3+
- https://prefix.dev/emscripten-forge-4x
44
- conda-forge
55
dependencies:
66
- cmake
7-
- emscripten_emscripten-wasm32==3.1.73
7+
- emscripten_emscripten-wasm32
88
- pip
99
- python=3.13
1010
- yarn

environment-wasm-host.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: xeus-python-wasm-host
22
channels:
3-
- https://prefix.dev/emscripten-forge-dev
3+
- https://prefix.dev/emscripten-forge-4x
44
- https://prefix.dev/conda-forge
55
dependencies:
66
- ipython
@@ -13,7 +13,7 @@ dependencies:
1313
- xeus-lite
1414
- xeus
1515
- xeus-python-shell>=0.6.3
16-
- pyjs >=2,<3
16+
- pyjs >=4,<5
1717
- libpython
1818
- zstd
1919
- openssl

include/xeus-python/xdebugger.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ namespace xpyt
4141
using base_type = xeus::xdebugger_base;
4242

4343
debugger(xeus::xcontext& context,
44-
const xeus::xconfiguration& config,
44+
const xeus::xkernel_configuration& config,
4545
const std::string& user_name,
4646
const std::string& session_id,
4747
const nl::json& debugger_config);
@@ -76,7 +76,7 @@ namespace xpyt
7676

7777
XEUS_PYTHON_API
7878
std::unique_ptr<xeus::xdebugger> make_python_debugger(xeus::xcontext& context,
79-
const xeus::xconfiguration& config,
79+
const xeus::xkernel_configuration& config,
8080
const std::string& user_name,
8181
const std::string& session_id,
8282
const nl::json& debugger_config);

include/xeus-python/xinterpreter.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,9 @@ namespace xpyt
6767

6868
nl::json kernel_info_request_impl() override;
6969

70-
void shutdown_request_impl() override;
70+
nl::json shutdown_request_impl(bool restart) override;
71+
72+
nl::json interrupt_request_impl() override;
7173

7274
nl::json internal_request_impl(const nl::json& content) override;
7375

include/xeus-python/xinterpreter_raw.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ namespace xpyt
6565

6666
nl::json kernel_info_request_impl() override;
6767

68-
void shutdown_request_impl() override;
68+
nl::json shutdown_request_impl(bool restart) override;
69+
70+
nl::json interrupt_request_impl() override;
6971

7072
void set_request_context(xeus::xrequest_context context) override;
7173
const xeus::xrequest_context& get_request_context() const noexcept override;

src/xcomm.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ namespace xpyt
8282
m_comm.on_close(cpp_callback(callback));
8383
}
8484

85-
xeus::xtarget* xcomm::target(const py::object& target_name) const
85+
const xeus::xtarget* xcomm::target(const py::object& target_name) const
8686
{
8787
return xeus::get_interpreter().comm_manager().target(target_name.cast<std::string>());
8888
}

src/xcomm.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace xpyt
4040

4141
private:
4242

43-
xeus::xtarget* target(const py::object& target_name) const;
43+
const xeus::xtarget* target(const py::object& target_name) const;
4444
xeus::xguid id(const py::kwargs& kwargs) const;
4545
cpp_callback_type cpp_callback(const python_callback_type& callback) const;
4646

src/xdebugger.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ using namespace std::placeholders;
4343
namespace xpyt
4444
{
4545
debugger::debugger(xeus::xcontext& context,
46-
const xeus::xconfiguration& config,
46+
const xeus::xkernel_configuration& config,
4747
const std::string& user_name,
4848
const std::string& session_id,
4949
const nl::json& debugger_config)
@@ -363,7 +363,7 @@ namespace xpyt
363363
}
364364

365365
std::unique_ptr<xeus::xdebugger> make_python_debugger(xeus::xcontext& context,
366-
const xeus::xconfiguration& config,
366+
const xeus::xkernel_configuration& config,
367367
const std::string& user_name,
368368
const std::string& session_id,
369369
const nl::json& debugger_config)

0 commit comments

Comments
 (0)