Skip to content

Commit 7e6fc5a

Browse files
committed
Enable rich display for xtensor through xeus-cpp-lite
1 parent 911d2b5 commit 7e6fc5a

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/include/xtensor/io/xio.hpp b/include/xtensor/io/xio.hpp
2+
index ca9d694a..345edc4d 100644
3+
--- a/include/xtensor/io/xio.hpp
4+
+++ b/include/xtensor/io/xio.hpp
5+
@@ -827,6 +827,6 @@ namespace xt
6+
7+
// Backward compatibility: include xmime.hpp in xio.hpp by default.
8+
9+
-#ifdef __CLING__
10+
+#if defined(__CLING__) || defined(__CLANG_REPL__)
11+
#include "xmime.hpp"
12+
#endif

recipes/recipes_emscripten/xtensor/recipe.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ package:
99
source:
1010
url: https://github.com/xtensor-stack/xtensor/archive/${{ version }}.tar.gz
1111
sha256: f5f42267d850f781d71097b50567a480a82cd6875a5ec3e6238555e0ef987dc6
12+
patches:
13+
- patches/rich_display.patch
1214

1315
build:
14-
number: 1
16+
number: 2
1517

1618
requirements:
1719
build:

0 commit comments

Comments
 (0)