3 ms·
I have been using evcxr for the last 2-3 weeks and I'm loving it. There are two things that bother me: (a) fancy UI components seem to only work with Python and
by rsstack 6y ago
I have been using evcxr for the last 2-3 weeks and I'm loving it. There are two things that bother me: (a) fancy UI components seem to only work with Python and C++ kernel (not theoretically, but with available packages), (b) while you can redefine values and functions when you're iterating, you cannot do so with structs (yes, big structs go to a local package that I depend on, but sometimes I have ad-hoc utility structs).
- westurner 6y agoHere's the xeus-cling (Jupyter C++ Kernel) source: https://github.com/jupyter-xeus/xeus-cling/tree/master/src https://github.com/jupyter-xeus/xeus-cling/tree/master/src Do any of the other non-Python Jupyter kernels have examples of working fancy UI components? https://github.com/jupyter/jupyter/wiki/Jupyter-kernels https://github.com/jupyter/jupyter/wiki/Jupyter-kernels Jupyter kernels implement the Jupyter kernel message spec. Introspection, Completion: https://jupyter-client.readthedocs.io/en/latest/messaging.html#introspection https://jupyter-client.readthedocs.io/en/latest/messaging.ht... Debugging (w/ DAP: Debug Adapter Protocol) https://jupyter-client.readthedocs.io/en/latest/messaging.html#debug-request https://jupyter-client.readthedocs.io/en/latest/messaging.ht... A `display_data` Jupyter kernel message includes a `data` key with a dict value: "The data dict contains key/value pairs, where the keys are MIME types and the values are the raw data of the representation in that format." https://jupyter-client.readthedocs.io/en/latest/messaging.html#display-data https://jupyter-client.readthedocs.io/en/latest/messaging.ht... This looks like it does something with MIME bundles: https://github.com/jupyter-xeus/xeus-cling/blob/00b1fa69d17b390b7d3b470a9859281350863d30/src/xmime_internal.hpp#L173 https://github.com/jupyter-xeus/xeus-cling/blob/00b1fa69d17b... ipython.display: https://github.com/ipython/ipython/blob/master/IPython/display.py https://github.com/ipython/ipython/blob/master/IPython/displ... ipython.core.display: https://github.com/ipython/ipython/blob/master/IPython/core/display.py https://github.com/ipython/ipython/blob/master/IPython/core/... ipython.lib.display: https://github.com/ipython/ipython/blob/master/IPython/lib/display.py https://github.com/ipython/ipython/blob/master/IPython/lib/d... You can also run Jupyter kernels in a shell with jupyter/jupyter_console: pip install jupyter-console jupyter-client jupyter kernelspec list jupyter console --kernel python3