{ "cells": [ { "cell_type": "code", "execution_count": 1, "metadata": { "collapsed": false, "outputExpanded": false }, "outputs": [], "source": ["import IPython"] }, { "cell_type": "code", "execution_count": 2, "metadata": { "collapsed": false, "outputExpanded": false }, "outputs": [], "source": ["import ipykernel"] }, { "cell_type": "code", "execution_count": 6, "metadata": { "collapsed": false, "outputExpanded": false }, "outputs": [ { "data": { "application/x-nteract-model-debug+json": "asdfasf" }, "metadata": {}, "output_type": "display_data" } ], "source": [ "IPython.display.display({\n", " 'application/x-nteract-model-debug+json': 'asdfasf'\n", "},\n", "raw=True)" ] }, { "cell_type": "code", "execution_count": 4, "metadata": { "collapsed": false, "outputExpanded": false }, "outputs": [], "source": [ "c = ipykernel.comm.Comm(target_name='setIn', target_module='reducers')" ] }, { "cell_type": "code", "execution_count": 5, "metadata": { "collapsed": false, "outputExpanded": false }, "outputs": [], "source": [ "import time\n", "import random\n", "\n", "for ii in range(25) :\n", " time.sleep(0.1)\n", " c.send({'path': ['b', 'c'], 'value': random.random()})" ] }, { "cell_type": "code", "execution_count": null, "metadata": { "collapsed": false, "outputExpanded": false }, "outputs": [], "source": [] } ], "metadata": { "kernel_info": { "name": "python3" }, "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.4" }, "title": "Debug nteract's Super Secret SetIn Models", "nteract": { "version": "nteract-on-jupyter@1.9.6" } }, "nbformat": 4, "nbformat_minor": 0 }