1515#include " xtensor/xio.hpp"
1616
1717#ifdef __CLING__
18+
19+ #include < nlohmann/json.hpp>
20+
21+ namespace nl = nlohmann;
22+
1823namespace xf
1924{
2025 template <class P , class T >
@@ -356,7 +361,7 @@ namespace xf
356361 }
357362
358363 template <class T >
359- xeus::xjson mime_bundle_repr_impl (const T& expr)
364+ nl::json mime_bundle_repr_impl (const T& expr)
360365 {
361366 std::stringstream out;
362367
@@ -380,7 +385,7 @@ namespace xf
380385
381386 xf::compute_nd_table (out, printer, expr, edge_items);
382387
383- auto bundle = xeus::xjson ::object ();
388+ auto bundle = nl::json ::object ();
384389 bundle[" text/html" ] = out.str ();
385390 return bundle;
386391 }
@@ -389,7 +394,7 @@ namespace xf
389394 class xvariable_container ;
390395
391396 template <class CCT , class ECT >
392- xeus::xjson mime_bundle_repr (const xvariable_container<CCT, ECT>& expr)
397+ nl::json mime_bundle_repr (const xvariable_container<CCT, ECT>& expr)
393398 {
394399 return xf::mime_bundle_repr_impl (expr);
395400 }
@@ -398,7 +403,7 @@ namespace xf
398403 class xvariable_function ;
399404
400405 template <class F , class R , class ... CT>
401- xeus::xjson mime_bundle_repr (const xvariable_function<F, R, CT...>& expr)
406+ nl::json mime_bundle_repr (const xvariable_function<F, R, CT...>& expr)
402407 {
403408 using temporary_type = typename xvariable_function<F, R, CT...>::temporary_type;
404409 temporary_type tmp (expr);
@@ -409,7 +414,7 @@ namespace xf
409414 class xvariable_view ;
410415
411416 template <class CT >
412- xeus::xjson mime_bundle_repr (const xvariable_view<CT>& expr)
417+ nl::json mime_bundle_repr (const xvariable_view<CT>& expr)
413418 {
414419 return xf::mime_bundle_repr_impl (expr);
415420 }
@@ -418,7 +423,7 @@ namespace xf
418423 class xvariable_masked_view ;
419424
420425 template <class CTV , class CTAX >
421- xeus::xjson mime_bundle_repr (const xvariable_masked_view<CTV, CTAX>& expr)
426+ nl::json mime_bundle_repr (const xvariable_masked_view<CTV, CTAX>& expr)
422427 {
423428 return xf::mime_bundle_repr_impl (expr);
424429 }
@@ -427,7 +432,7 @@ namespace xf
427432 class xreindex_view ;
428433
429434 template <class E >
430- xeus::xjson mime_bundle_repr (const xreindex_view<E>& expr)
435+ nl::json mime_bundle_repr (const xreindex_view<E>& expr)
431436 {
432437 return xf::mime_bundle_repr_impl (expr);
433438 }
0 commit comments