Skip to content

Commit 0d526be

Browse files
committed
use xeus 5.1.0
1 parent 0c16733 commit 0d526be

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

environment-dev.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ dependencies:
77
- cmake
88
- cxx-compiler
99
# Host dependencies
10-
- xeus>=5.0.0
10+
- xeus=5.1.0
1111
- xeus-zmq>=3.0,<4.0
1212
- nlohmann_json=3.11.3
1313
- cppzmq

notebooks/xeus-cpp.ipynb

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -479,8 +479,6 @@
479479
"\n",
480480
"#include \"nlohmann/json.hpp\"\n",
481481
"\n",
482-
"#include \"xtl/xbase64.hpp\"\n",
483-
"\n",
484482
"namespace nl = nlohmann;\n",
485483
"\n",
486484
"namespace im\n",
@@ -499,7 +497,7 @@
499497
" nl::json mime_bundle_repr(const image& i)\n",
500498
" {\n",
501499
" auto bundle = nl::json::object();\n",
502-
" bundle[\"image/png\"] = xtl::base64encode(i.m_buffer.str());\n",
500+
" bundle[\"image/png\"] = xeus::base64encode(i.m_buffer.str());\n",
503501
" return bundle;\n",
504502
" }\n",
505503
"}"
@@ -579,8 +577,6 @@
579577
"\n",
580578
"#include \"nlohmann/json.hpp\"\n",
581579
"\n",
582-
"#include \"xtl/xbase64.hpp\"\n",
583-
"\n",
584580
"namespace nl = nlohmann;\n",
585581
"\n",
586582
"namespace au\n",
@@ -601,7 +597,7 @@
601597
" auto bundle = nl::json::object();\n",
602598
" bundle[\"text/html\"] =\n",
603599
" std::string(\"<audio controls=\\\"controls\\\"><source src=\\\"data:audio/wav;base64,\")\n",
604-
" + xtl::base64encode(a.m_buffer.str()) +\n",
600+
" + xeus::base64encode(a.m_buffer.str()) +\n",
605601
" \"\\\" type=\\\"audio/wav\\\" /></audio>\";\n",
606602
" return bundle;\n",
607603
" }\n",

test/test_xcpp_kernel.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,6 @@ class XCppTests(jupyter_kernel_test.KernelTests):
110110
#include <string>
111111
#include <fstream>
112112
#include "nlohmann/json.hpp"
113-
#include "xtl/xbase64.hpp"
114113
namespace im {
115114
struct image {
116115
inline image(const std::string& filename) {
@@ -121,7 +120,7 @@ class XCppTests(jupyter_kernel_test.KernelTests):
121120
};
122121
nlohmann::json mime_bundle_repr(const image& i) {
123122
auto bundle = nlohmann::json::object();
124-
bundle["image/png"] = xtl::base64encode(i.m_buffer.str());
123+
bundle["image/png"] = xeus::base64encode(i.m_buffer.str());
125124
return bundle;
126125
}
127126
}

0 commit comments

Comments
 (0)