<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kyle Kelley on Medium]]></title>
        <description><![CDATA[Stories by Kyle Kelley on Medium]]></description>
        <link>https://medium.com/@rgbkrk?source=rss-783da0379221------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*fE9rvuEVdbX43DsV8jSnDA.jpeg</url>
            <title>Stories by Kyle Kelley on Medium</title>
            <link>https://medium.com/@rgbkrk?source=rss-783da0379221------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:49:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rgbkrk/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Bringing Modern JavaScript to the Jupyter Notebook]]></title>
            <link>https://medium.com/jupyter-blog/bringing-modern-javascript-to-the-jupyter-notebook-fc998095081e?source=rss-783da0379221------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc998095081e</guid>
            <category><![CDATA[deno]]></category>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[typescript]]></category>
            <category><![CDATA[dataframes]]></category>
            <dc:creator><![CDATA[Kyle Kelley]]></dc:creator>
            <pubDate>Sun, 24 Sep 2023 03:34:13 GMT</pubDate>
            <atom:updated>2024-02-13T16:02:44.326Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Deno kernel is the freshest runtime for Jupyter</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dioQ00ymlsIb1PPH_SBdjg.gif" /><figcaption>Visualizing Data via Deno, TypeScript, and VegaLite in JupyterLab</figcaption></figure><p>I never expected <a href="https://deno.com/blog/v1.37">this</a>.</p><h3>Deno on Twitter: &quot;using modern JS, TS, and npm in jupyter notebooks👇 pic.twitter.com/uJAv9odW6y / Twitter&quot;</h3><p>using modern JS, TS, and npm in jupyter notebooks👇 pic.twitter.com/uJAv9odW6y</p><p><a href="https://deno.land/">Deno</a> brings TypeScript, JavaScript, npm, and ES Modules to Jupyter with an easy to install kernel.</p><blockquote>The Deno Kernel is the first language runtime with a builtin jupyter kernel.</blockquote><p>There’s no better time to <a href="https://docs.deno.com/runtime/manual/getting_started/installation">get started with Deno</a> than now. Once deno is installed, run the <a href="https://docs.deno.com/runtime/manual/tools/jupyter">deno jupyter kernel installation</a>:</p><pre>deno jupyter --unstable --install</pre><figure><img alt="Screen recording of clicking to select a kernel in VS Code. The users clicks “Select Kernel” in their notebook and a “Select Kernel” dialog comes up in the top middle. They click “Jupyter Kernel” and a listing of several Python kernels comes up. They select Deno and it drops them into the notebook. They type in console.log(“HOORAY!”) and run it. Out pops HOORAY!" src="https://cdn-images-1.medium.com/max/712/1*_KUkFmq1lO3H-tx4XJPNew.gif" /><figcaption>Enabling Deno in VS Code</figcaption></figure><p>Since Deno supports web standards like fetch out of the box, loading data is simple and easy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndB49_FE9Mq8-9YSNFLuWw.png" /><figcaption>That’s so fetch</figcaption></figure><p>Not only is this a fast &amp; secure runtime, it’s fun. The timing is great too — <a href="https://platform.noteable.io/blog/dataframes-answers-for-solutions">DataFrames</a> aren’t just for <a href="https://dataframes.juliadata.org/stable/">Julia</a>, <a href="https://pandas.pydata.org/">Python</a>, <a href="https://cran.r-project.org/doc/manuals/r-release/R-intro.html#Data-frames">R</a>, and <a href="https://www.pola.rs/">Rust</a>. <a href="https://github.com/pola-rs/nodejs-polars">Polars provides DataFrames for JavaScript</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m6aEUA3UifW-qNnPu8etPw.png" /><figcaption>Manipulating DataFrames in JavaScript</figcaption></figure><p>What’s surprising me is how easily I can use <a href="https://github.com/rgbkrk/denotebooks/blob/main/10.2_Polar%20DataFrames.ipynb">D3 with DataFrames</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BBPR6Od9aEwZanntimfkTA.png" /><figcaption>D3 and Polars playing well together in a notebook</figcaption></figure><p>We can draw plots directly to a canvas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZF4Q_S9RVCcf_fLe191kQw.png" /></figure><p>as well as use any library that emits SVG</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i8svfV32WtGxOxKCQv0-UA.png" /></figure><p>This enables a broad range of JavaScript developers and data professionals to iterate in a notebook <strong>writing documentation that runs</strong>.</p><p>If you want to explore and visualize data with JavaScript/TypeScript, check out <a href="https://deno.com/">Deno</a> and their <a href="https://docs.deno.com/runtime/manual/tools/jupyter">docs on getting started with Jupyter</a>.</p><p>If you know Rust, come <a href="https://github.com/denoland/deno">hack on Deno</a>. If you don’t know rust, like me, come hack on Deno anyway. You can learn. The Deno team is a friendly group of people who believe deeply in the power of TypeScript, Jupyter, and standards.</p><p>You can also contribute by <a href="https://github.com/denoland/deno/issues">filing bugs</a>, writing notebooks, and sharing the Deno kernel with others.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*Lq2UGOudjDsPyzNFtHXr2Q.png" /><figcaption>Jupyter Denos</figcaption></figure><p>Happy Notebooking!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc998095081e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/jupyter-blog/bringing-modern-javascript-to-the-jupyter-notebook-fc998095081e">Bringing Modern JavaScript to the Jupyter Notebook</a> was originally published in <a href="https://medium.com/jupyter-blog">Jupyter Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[nteract on jupyter]]></title>
            <link>https://medium.com/nteract/nteract-on-jupyter-53cc2c38290d?source=rss-783da0379221------2</link>
            <guid isPermaLink="false">https://medium.com/p/53cc2c38290d</guid>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[jupyter]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Kyle Kelley]]></dc:creator>
            <pubDate>Wed, 09 May 2018 15:34:15 GMT</pubDate>
            <atom:updated>2018-09-27T18:54:15.190Z</atom:updated>
            <content:encoded><![CDATA[<h4>Announcing a new nteract extension for your classic jupyter notebook server</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yZZy8KmYP2irPxtKkAcjWA.png" /><figcaption>nteract on the desktop</figcaption></figure><p>Our goal when we started the nteract project was to <a href="https://blog.nteract.io/nteract-revolutionizing-the-notebook-experience-d106ca5d2c38">create an intuitive and approachable desktop app</a> for Jupyter notebooks. In service to that goal, we developed a native app that had drag-and-droppable cells, inline toolbars, and a growing list of custom output types.</p><p>These features and designs originated from <a href="https://blog.nteract.io/collaborating-on-visual-identity-8b70993f1bba">principles focusing on simplicity and ease-of-use for analysts and students</a>, extending beyond the domain of just data scientists and engineers.</p><p>What we didn’t realize was that our users would love the nteract interface so much that they would want a version tailored for the web.</p><p>As <a href="https://blog.nteract.io/nteract-building-on-top-of-jupyter-9cfbccdd4c1d">strong believers in the core Jupyter APIs</a>, we made a way for you to run nteract on your Jupyter Notebook server, whether local, remote, or even on JupyterHub. It all comes bundled in a jupyter server extension you can install today.</p><h3>Tour</h3><p>People love a lot about the classic browser-based experience for jupyter notebooks. This includes having URLs for notebook paths as well as separate tabs between notebooks. We’ve taken a similar approach to nteract in the browser. You have access to a directory navigator, full-screen notebook, and file editor, all on content-based paths within your favorite browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*HEj-8KXddSLs-4XCKMC9Ug.png" /><figcaption>1-Click Notebook Launcher</figcaption></figure><p>From the main directory listing, you can launch new notebooks with a single click.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/985/1*g4FfvkuhbCeNT2oFor0PyQ.png" /><figcaption>An Empty Notebook</figcaption></figure><p>These notebooks use the same sessions API from the classic notebook experience — if you run into an issue where something you need isn’t supported in nteract yet you can always fallback on the classic notebook. No hard feelings</p><p>We wanted to use this opportunity to preserve much of the functionality from classic notebooks that users told us they really liked while ensuring there was an interface that worked for a wide range of users.</p><h3>Getting Involved</h3><p>As we ramp up more development, you can lend a hand if you want to get involved, learn more, and help make a better experience for everyone.</p><ul><li>Share your notebooks by <a href="https://twitter.com/nteractio">tweeting to @nteractio</a>, emailing on the jupyter list, or posting a github issue showing them off</li><li>Contribute to <a href="https://github.com/nteract/nteract/issues?q=is%3Aissue+is%3Aopen+label%3Aapp%3Ajupyter-extension">issues labeled for the jupyter extension</a></li><li>Create <a href="https://github.com/nteract/nteract/issues/new?labels=app%3Ajupyter-extension">new issues expressly for the jupyter extension</a></li><li><a href="https://www.flipcause.com/secure/cause_pdetails/MTA5ODg=">Donate to nteract</a> so we can support contributors in the community💰🕐</li></ul><p>Rest assured, because of our <a href="https://github.com/nteract/nteract/blob/87849383ad2f244111d6f3888c656be13c74603c/doc/design/monorepo.md">monorepo structure</a>, if you create better ways of handling things in the jupyter extension, you’re improving the desktop app too.</p><h3>Quick Start</h3><p>While the nteract jupyter extension is being worked on, you can still try it today!</p><h4>Quick Start — Try it now with Binder</h4><ul><li><a href="https://mybinder.org/v2/gh/nteract/vdom/master?urlpath=%2Fnteract%2Fedit%2Fexample-notebooks">Try some example notebooks online</a></li></ul><h4>Quick Start — Install it locally</h4><pre>pip install nteract_on_jupyter</pre><p>Then run it with</p><pre>jupyter nteract</pre><p><em>NOTE: If you’re on an older version of the notebook server, </em><em>notebook &lt; 5.3 , then you will also need to run:</em></p><pre>jupyter serverextension enable nteract_on_jupyter</pre><p>We recommend upgrading notebook though!</p><pre>pip install --upgrade notebook</pre><p>Special thanks to <a href="https://medium.com/u/11c28997cfc8">Dana Bauer</a>, <a href="https://medium.com/u/8acf2641e148">Michelle Ufford</a>, <a href="https://medium.com/u/b780dc2108d8">M Pacer</a>, <a href="https://medium.com/u/1769fb796eeb">Safia Abdalla</a>, and <a href="https://medium.com/u/9c7d747fb9c1">yuvipanda</a> for reviewing this post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=53cc2c38290d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nteract/nteract-on-jupyter-53cc2c38290d">nteract on jupyter</a> was originally published in <a href="https://medium.com/nteract">nteract</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Collaborating on Visual Identity]]></title>
            <link>https://medium.com/nteract/collaborating-on-visual-identity-8b70993f1bba?source=rss-783da0379221------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b70993f1bba</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[design]]></category>
            <category><![CDATA[branding]]></category>
            <category><![CDATA[jupyter]]></category>
            <category><![CDATA[visual-identity]]></category>
            <dc:creator><![CDATA[Kyle Kelley]]></dc:creator>
            <pubDate>Fri, 03 Feb 2017 00:33:13 GMT</pubDate>
            <atom:updated>2017-02-03T06:33:18.653Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<h4>A Design Focused Exploration</h4><p>One of the best aspects of working on <a href="https://nteract.io/">nteract</a> has been interacting with designers and fellow collaborators to establish the visual identity for our project. I’m going to walk you through how we came to the branding you see today, as well as how it might change in the future.</p><p>Establishing the visual identity of your project forces you to think about how it resonates emotionally with your users and collaborators. What imagery captures attention? How do you inspire people? What message do you want to capture? After we internally conceptualized some initial answers to these questions, it was time to find a designer.</p><h3>The First Designer</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IDLJ7rSP-aeyiZewcr9-vw.png" /></figure><p>Communicating our vision through a skilled designer was tougher than we realized. When we met with our first designer, they presented a mood board that included collections of imagery, sketches, and some initial landscapes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aHNUzIBAU2l-jespYmkxdw.png" /></figure><p>I was immediately taken aback. I found the designs isolating rather than adventurous. They were beautiful no doubt. How could I bring myself to tell someone that this piece didn’t capture the project? They created something beautiful, but not fitting the project.</p><p>I wanted a sense of play, something to inspire and delight with whimsy while still tying back to how people interact with nteract. What I wanted to evoke was <em>fun</em>. We should come back to the notebook delighted and excited to explore our data, libraries, and programming languages. Developers and users should <em>feel empowered</em>.</p><p>I wrote back to Jack (CEO at Plotly) who was coordinating with the design agency to let him know my thoughts. Jack focused on creating a brand of whimsy, color, and exploration that would be strikingly different from the grey and beige washed UIs of the top technical computing IDEs. Mainly, we both agreed that design and brand are hugely overlooked in scientific tools, and we wanted to get this right from the beginning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p_JjmEz5RBbxuQJCftIn4A.png" /></figure><p>Jack was super supportive here, and asked them to work in more fun using playful objects that were in the sample art on the mood board: balloons, whales, meteor showers, and the moon.</p><h3>A New Designer</h3><p>Ever uncompromising, I asked if we could take a step back and try some other designers. The number one person I wanted to work with was <a href="https://dribbble.com/fabric8">Fabricio Rosa Marques</a>.</p><p><a href="https://dribbble.com/fabric8">Fabricio Rosa Marques - Dribbble</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QM98ArQldMtJB83BrFEslw.png" /><figcaption>Fab’s Dribbble Portfolio</figcaption></figure><p>Fabricio created an incredibly fun and playful logo for <a href="https://twitter.com/_philpl">Phil Plückthun</a>’s <a href="https://github.com/philpl/fluorine">Fluorine library</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*-wDydD3YBQ9bBXh5Glj7aA.gif" /></figure><p>I reached out on Twitter to kick things off:</p><h3>Kyle Kelley on Twitter</h3><p>@_philpl Hey @fabric_8, could I commission you to make a logo for a github org? I&#39;m a really big fan of your work!</p><p>After some DMs, we switched to email and outlined what the project represented to us:</p><p><em>Our primary focus is an </em><a href="https://github.com/nteract/nteract"><em>interactive computational notebook</em></a><em>. In the notebook, people intersperse narrative prose, code, plots and other imagery in one document that they share with others. The users tend to be data scientists, researchers, and journalists.</em></p><p><em>Within the project ecosystem, we provide the UI components and JavaScript packages needed for people to build other interactive notebooks, Atom packages, or new explorations. We’re an open source collective, and we all come from different institutions, organizations, and backgrounds. </em><strong><em>We’re on a shared mission to build great experiences for interacting with compute + data, no matter how and where people are using it.</em></strong></p><blockquote>Mission: to build great experiences for interacting with compute + data, no matter how and where.</blockquote><p>Safia, another nteract lead, followed this up with an additional mission statement:</p><p><em>The nteract organization </em><strong><em>explores what is possible</em></strong><em> (and impossible) in interactive computing experiences. We investigate cutting edge technology to build small components that others can combine to create the next big thing. nteract is </em><strong><em>all about learning together and learning from each other</em></strong><em>.</em></p><p>These helped carve out for us what the project <em>meant</em> and a subtle amount of the emotion behind it.</p><p>Fab keyed into our mission statements, demonstrated an interest in the project, and offered to create a visual identity kit, including all the brand-relevant visual elements (colors, typography, graphic elements, illustrations or icons, logo, etc.). We already liked his designs, little did we know we would love working with him as much. ❤</p><p>Once Fabricio had time, Safia sat down on a call with Fabricio and they explored what the project represents — the history of its inception, its goals, and its place in the scientific computing ecosystem.</p><h3>Exploring Visual Identity</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vfGV8J8uu59YxC7gE2kFSg.png" /><figcaption>Exploring nteract through its users and developers</figcaption></figure><p>The call with Fabricio resulted in a <a href="https://github.com/nteract/logos/blob/3f08c0ad2aa226a826ea13a1b84ab1216263e9b7/nteract_logo_cube_book/concepts/nteract_visual_id_exploration.png">visual identity exploration</a> that penned down the mission slightly hidden amongst our correspondence.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F5abtgKM_-w9t1dpFIZtJw.png" /><figcaption>Mind map of nteract</figcaption></figure><p>Without this process, we likely wouldn’t see the vision we had been trying to paint with as much clarity. From here, Fab created some initial concept art for the logo and theme.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1zTAWyEi-pqWuGdpflg3fQ.png" /><figcaption>Logo Mark / Theme Concepts</figcaption></figure><p><a href="https://slackin-nteract.now.sh/">In Slack</a> we all chimed in about which logos spoke to us and how. Fabricio began iterating and we provided feedback each time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*mfeYgrYfwC-AqzHeZu44OA.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uJQvwEkVkGv8ftgmcQ9jyw.png" /></figure><p>On each iteration, we provided <a href="https://slackin-nteract.now.sh/">feedback in Slack</a> and Fabricio would come back with more designs based on the ones we liked best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*nBxAB7LaMzBQK-iG257KwQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXFG0fQAOTBhCmqbQHFN3w.png" /></figure><p>We were all really pleased with the direction this was going. One suggestion was made to switch the “obelisk” in the notebook in the lower right for a cube.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hhNLiYpFTfO7iLijJYez0Q.png" /></figure><p>There were so many great logos. We had to pick just one though — Fabricio made a <a href="https://github.com/nteract/logos/blob/3f08c0ad2aa226a826ea13a1b84ab1216263e9b7/nteract_logo_cube_book/nteract_logo_showcase.png">logo showcase</a> with our choice.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/240/1*qCxO1lIAF_b2D5UiVfN-8Q.png" /><figcaption>nteract logo showcase</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/888/1*t0M5K52_2Agba4qDqbx3CA.gif" /><figcaption>♥‿♥</figcaption></figure><p>This logo and the color palette led right into creating our our main site. <a href="http://ineffable.co/">Thomas Osmonson</a> translated static mocks and incorporated assets from Fabricio into a mobile friendly site, <a href="https://nteract.io/">nteract.io</a>, demonstrating our cohesive visual identity:</p><p><a href="https://nteract.io/">Take your computing experience to the next level.</a></p><p>Working with designers and other collaborators through this process taught us several things:</p><ol><li>Seek to understand what the vision of your project is so you can convey it to a designer. They may or may not be users of your application — they need to know how you empower people.</li><li>Respect their time highly and their value. Great designers cost real money, and you should pay them for their time, including the incredibly valuable process of figuring out your initial designs — even if you go with a separate design or designer. It’s ok to wait and take time. The creative process must go through many cycles.</li><li>Sometimes you may not have the words you need to convey. Ask questions, be humble in stating what you aren’t sure how to express.</li></ol><p>Hopefully, this gives a bit of illumination into what the process for design could look like for other open source projects.</p><p><em>This article was written in collaboration with </em><a href="https://medium.com/@captainsafia"><em>Safia Abdalla</em></a><em>, </em><a href="https://medium.com/@ivanov"><em>Paul Ivanov</em></a><em>, </em><a href="https://dribbble.com/fabric8"><em>Fabricio Rosa Marques</em></a>,<em> </em><a href="https://medium.com/@plotlygraphs"><em>Jack Parmer</em></a><em>, </em><a href="https://medium.com/@peggyrayzis"><em>Peggy Rayzis</em></a><em>, and </em><a href="https://medium.com/@willingc"><em>Carol Willing</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b70993f1bba" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nteract/collaborating-on-visual-identity-8b70993f1bba">Collaborating on Visual Identity</a> was originally published in <a href="https://medium.com/nteract">nteract</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[nteract: Building on Top of Jupyter]]></title>
            <link>https://medium.com/nteract/nteract-building-on-top-of-jupyter-9cfbccdd4c1d?source=rss-783da0379221------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cfbccdd4c1d</guid>
            <category><![CDATA[jupyter]]></category>
            <category><![CDATA[programming-languages]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[reactive-programming]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Kyle Kelley]]></dc:creator>
            <pubDate>Wed, 30 Nov 2016 18:01:07 GMT</pubDate>
            <atom:updated>2024-01-25T22:51:29.323Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*9MmJgqd8Xfa3wzZjLDEPHg.png" /><figcaption>Blueprint for nteract</figcaption></figure><p><a href="https://nteract.io/">nteract</a> builds upon the very successful foundations of <a href="https://jupyter.org/">Jupyter</a>. I think of Jupyter as a brilliantly rich REPL toolkit. A typical REPL (Read-Eval-Print-Loop) is an interpreter that takes input from the user and prints results (on stdout and stderr).</p><p>Here’s the standard Python interpreter; a REPL many of us know and love.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/1*9jU1FW3Qwbstd-YnrP61qA.png" /><figcaption>Standard Python interpreter</figcaption></figure><p>The standard terminal’s spartan user interface, while useful, leaves something to be desired. IPython was created in 2001 to refine the interpreter, primarily by extending display hooks in Python. Iterative improvement on the interpreter was a big boon for interactive computing experiences, especially in the sciences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/815/1*3YlQxh-BerbjLxcE-1ygng.png" /><figcaption>IPython terminal</figcaption></figure><p>As the team behind IPython evolved, so did their ambitions to create richer consoles and notebooks. Core to this was crafting the <a href="https://github.com/fperez/zmq-pykernel">building blocks of the protocol</a> that were established on top of <a href="http://zeromq.org/">ZeroMQ</a>, leading to the creation of the IPython notebook. It decoupled the REPL from a closed loop in one system to multiple components communicating together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TWUuv0MVN9aLP18ESBVvwA.png" /><figcaption>IP[y]thon Notebook</figcaption></figure><p>As IPython came to embrace more than just Python (<a href="https://github.com/IRkernel/IRkernel">R</a>, <a href="https://github.com/JuliaLang/IJulia.jl">Julia</a>, <a href="https://github.com/n-riesco/ijavascript">Node.js</a>, <a href="https://github.com/alexarchambault/jupyter-scala">Scala</a>, …), the IPython leads created a home for the language agnostic parts: Jupyter.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9K5v3X_dMPz80aB7LqSuSA.png" /><figcaption>Jupyter Notebook Classic Edition</figcaption></figure><p>Jupyter isn’t <em>just</em> a notebook or a console.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0iC7TcQbu2xzk7KzcWcwUQ.png" /></figure><p>It’s an establishment of well-defined protocols and formats. It’s a community of people who come together to build interactive computing experiences. We share our knowledge across the sciences, academia, and industry — there’s a lot of overlap in vision, goals, and priorities.</p><p>That being said, one project alone may not meet with everyone’s specific needs and workflows. Luckily, with strong support by Jupyter’s solid foundation of protocols to communicate with the interpreters (Jupyter kernels) and document formats (e.g. <em>.ipynb</em>), you too can build your ideal interactive computing environment.</p><p>In pursuit of this, members of the Jupyter community created nteract, a Jupyter notebook desktop application as well as an ecosystem of JavaScript packages to support it and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IG06S66qCCoQsLMjjZljJQ.png" /></figure><h3>What is the platform that Jupyter provides to build rich interactive experiences?</h3><p>To explore this, I will describe the Jupyter protocol with a lightweight (<em>non-compliant</em>) version of the protocol that hopefully helps explain how this works under the hood.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/643/1*Q7jB2tuIMOr9NfRq9OAJBA.png" /><figcaption>Also a lightweight Hello World</figcaption></figure><p>When a user runs this code, a message is formed:</p><pre>{<br>  &quot;msg_type&quot;: &quot;execute_request&quot;,<br>  &quot;content&quot;: {<br>    &quot;code&quot;: &quot;print(&#39;hey&#39;)&quot;<br>  }<br>}</pre><p>We send that message and receive replies as JSON:</p><pre>{<br>  &quot;msg_type&quot;: &quot;status&quot;,<br>  &quot;content&quot;: {<br>    &quot;execution_state&quot;: &quot;busy&quot;<br>  }<br>}</pre><pre>{<br>  &quot;msg_type&quot;: &quot;stream&quot;,<br>  &quot;content&quot;: {<br>    &quot;text&quot;:&quot;hey\n&quot;,<br>    &quot;name&quot;:&quot;stdout&quot;<br>  }<br>}</pre><pre>{<br>  &quot;msg_type&quot;: &quot;status&quot;,<br>  &quot;content&quot;: {<br>    &quot;execution_state&quot;: &quot;idle&quot;<br>  }<br>}</pre><p>We’ve received two types of messages so far:</p><ul><li>execution status for the interpreter — busy or idle</li><li>a “stream” of stdout</li></ul><p>The status tells us the interpreter is ready for more and the stream data is shown below the editor in the output area of a notebook.</p><h3>What happens when a longer computation runs?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/976/1*SkgJ4e_xTq_pq_WIIqALfg.gif" /><figcaption>Sleepy time printing</figcaption></figure><pre>{<br>  &quot;msg_type&quot;: &quot;status&quot;,<br>  &quot;content&quot;: {<br>    &quot;execution_state&quot;: &quot;busy&quot;<br>  }<br>}</pre><pre>{<br>  &quot;msg_type&quot;: &quot;stream&quot;,<br>  &quot;content&quot;: {<br>    &quot;text&quot;:&quot;hey\n&quot;,<br>    &quot;name&quot;:&quot;stdout&quot;<br>  }<br>}</pre><pre>{<br>  &quot;msg_type&quot;: &quot;stream&quot;,<br>  &quot;content&quot;: {<br>    &quot;text&quot;:&quot;sup\n&quot;,<br>    &quot;name&quot;:&quot;stdout&quot;<br>  }<br>}</pre><pre>{<br>  &quot;msg_type&quot;: &quot;status&quot;,<br>  &quot;content&quot;: {<br>    &quot;execution_state&quot;: &quot;idle&quot;<br>  }<br>}</pre><p>As multiple outputs come in, they get appended to the display area below the code editor.</p><h3>How are tables, plots, and other rich media shown?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n4-ANdXi3BTDkeSzxhy4Lg.png" /><figcaption>Yay for DataFrames!</figcaption></figure><p>Let’s send that code over to see</p><pre>{<br>  &quot;msg_type&quot;: &quot;execute_request&quot;,<br>  &quot;content&quot;: {<br>    &quot;code&quot;: &quot;pd.read_csv(&#39;sf-temps.csv&#39;).sample(n=5)&quot;<br>  }<br>}</pre><p>The power and simplicity of the protocol emerges when using the <em>execute_result</em> and <em>display_data</em> message types. They both have a data field with multiple media types for the frontend to choose how to represent. Pandas provides text/plain and text/html for tabular data</p><pre>{<br>  &quot;msg_type&quot;: &quot;execute_result&quot;,<br>  &quot;content&quot;: {<br>    &quot;data&quot;: {<br>      // Full payloads below<br>      &quot;text/plain&quot;: ...,<br>      &quot;text/html&quot;:  ...,<br>    }<br>  }<br>}</pre><h4>text/plain</h4><pre>      temp                 date<br>4851  56.4  2010/07/22 04:00:00<br>6232  65.9  2010/09/17 17:00:00<br>8497  47.0  2010/12/21 02:00:00<br>5875  60.9  2010/09/02 20:00:00<br>5625  65.7  2010/08/23 10:00:00</pre><h4>text/html</h4><pre>&lt;div&gt;<br>  &lt;table border=&quot;1&quot; class=&quot;dataframe&quot;&gt;<br>    &lt;thead&gt;<br>      &lt;tr style=&quot;text-align: right;&quot;&gt;<br>        &lt;th&gt;&lt;/th&gt;<br>        &lt;th&gt;temp&lt;/th&gt;<br>        &lt;th&gt;date&lt;/th&gt;<br>      &lt;/tr&gt;<br>    &lt;/thead&gt;<br>    &lt;tbody&gt;<br>      &lt;tr&gt;<br>        &lt;th&gt;4851&lt;/th&gt;<br>        &lt;td&gt;56.4&lt;/td&gt;<br>        &lt;td&gt;2010/07/22 04:00:00&lt;/td&gt;<br>      &lt;/tr&gt;<br>      &lt;tr&gt;<br>        &lt;th&gt;6232&lt;/th&gt;<br>        &lt;td&gt;65.9&lt;/td&gt;<br>        &lt;td&gt;2010/09/17 17:00:00&lt;/td&gt;<br>      &lt;/tr&gt;<br>      &lt;tr&gt;<br>        &lt;th&gt;8497&lt;/th&gt;<br>        &lt;td&gt;47.0&lt;/td&gt;<br>        &lt;td&gt;2010/12/21 02:00:00&lt;/td&gt;<br>      &lt;/tr&gt;<br>      &lt;tr&gt;<br>        &lt;th&gt;5875&lt;/th&gt;<br>        &lt;td&gt;60.9&lt;/td&gt;<br>        &lt;td&gt;2010/09/02 20:00:00&lt;/td&gt;<br>      &lt;/tr&gt;<br>      &lt;tr&gt;<br>        &lt;th&gt;5625&lt;/th&gt;<br>        &lt;td&gt;65.7&lt;/td&gt;<br>        &lt;td&gt;2010/08/23 10:00:00&lt;/td&gt;<br>      &lt;/tr&gt;<br>    &lt;/tbody&gt;<br>  &lt;/table&gt;<br>&lt;/div&gt;</pre><p>When the front-end receives the HTML payload, it embeds it directly in the outputs so you get a nice table:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n4-ANdXi3BTDkeSzxhy4Lg.png" /><figcaption>DataFrame to Table</figcaption></figure><p>This isn’t limited to HTML and text — we can handle images and any other known transform. The primary currency for display are these bundles of media types to data. In nteract we have a few custom mime types, which are also <a href="https://github.com/jupyter/notebook/pull/1907">coming soon to a Jupyter notebook near you</a>!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VKtqWscWhOGdSjPsXjgaNA.png" /><figcaption>GeoJSON in nteract</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YrA1UTJ2dgGNjimrJa0n9A.png" /><figcaption>Vega / Vega-lite via <a href="https://github.com/altair-viz/altair">Altair</a></figcaption></figure><h3>How do you build a notebook document?</h3><p>We’ve witnessed how our code gets sent across to the runtime and what we receive on the notebook side. How do we form a notebook? How do we associate messages to the cells they originated from?</p><p>We need an ID to identify where an <em>execute_request</em> comes from. Let’s bring in the concept of a message ID and form the cell state over time</p><p><strong>We send the execute_request as message 0001</strong></p><pre>{<br>  &quot;msg_type&quot;: &quot;execute_request&quot;,<br>  &quot;msg_id&quot;: &quot;0001&quot;,<br>  &quot;content&quot;: {<br>    &quot;code&quot;: &quot;print(&#39;hey&#39;)&quot;<br>  }<br>}</pre><p><strong>and initialize our state</strong></p><pre>code: &quot;print(&#39;hey&#39;)&quot;</pre><p>Each message afterward lists the originating <em>msg_id</em> as <em>parent_id</em> 0001. Responses start flowing in, starting with <strong>message 0002</strong></p><pre>{<br>  &quot;msg_type&quot;: &quot;status&quot;,<br>  &quot;msg_id&quot;: &quot;0002&quot;,<br>  &quot;parent_id&quot;: &quot;0001&quot;,<br>  &quot;content&quot;: {<br>    &quot;execution_state&quot;: &quot;busy&quot;<br>  }<br>}</pre><p>Which we can store as part of the state of our cell</p><pre>code: &quot;print(&#39;hey&#39;)&quot;<br>status: &quot;busy&quot;</pre><p>Here comes the plain text output in <strong>message 0003</strong></p><pre>{<br>  &quot;msg_type&quot;: &quot;stream&quot;,<br>  &quot;msg_id&quot;: &quot;0003&quot;,<br>  &quot;parent_id&quot;: &quot;0001&quot;,<br>  &quot;content&quot;: {<br>    &quot;text&quot;:&quot;hey\n&quot;,<br>    &quot;name&quot;:&quot;stdout&quot;<br>  }<br>}</pre><p>Which we fold into an outputs structure of our cell</p><pre>code: &quot;print(&#39;hey&#39;)&quot;<br>status: &quot;busy&quot;<br>outputs:<br>  - type: &quot;stream&quot;<br>    text: &quot;hey\n&quot;<br>    name: &quot;stdout&quot;</pre><p>Finally, we receive a status to inform us the kernel is no longer busy</p><pre>{<br>  &quot;msg_type&quot;: &quot;status&quot;,<br>  &quot;msg_id&quot;: &quot;0004&quot;,<br>  &quot;parent_id&quot;: &quot;0001&quot;,<br>  &quot;content&quot;: {<br>    &quot;execution_state&quot;: &quot;idle&quot;<br>  }<br>}</pre><p>Resulting in the final state of the cell</p><pre>code: &quot;print(&#39;hey&#39;)&quot;<br>status: &quot;idle&quot;<br>outputs:<br>  - type: &quot;stream&quot;<br>    text: &quot;hey\n&quot;<br>    name: &quot;stdout&quot;</pre><p>That’s just one cell though —what would an entire notebook structure look like? One way of thinking about a notebook is that it’s a rolling work log of computations. A linear list of cells. Using the same format we’ve constructed above, here’s a lightweight notebook:</p><pre>cells:</pre><pre>  - text: &quot;# Now with markdown!&quot;</pre><pre>  - code: &quot;from IPython.display import HTML&quot;</pre><pre>  - code: &quot;print(&#39;hey&#39;)&quot;<br>    outputs:<br>    - type: &quot;stream&quot;<br>      text: &quot;hey\n&quot;<br>      name: &quot;stdout&quot;</pre><pre>  - code: &quot;HTML(&#39;&lt;b&gt;WHOA&lt;/b&gt;&#39;)&quot;<br>    outputs:<br>    - type: &quot;execute_result&quot;<br>      data: <br>        - &quot;text/html&quot;: &quot;&lt;b&gt;WHOA&lt;/b&gt;&quot;</pre><p>As well as the rendered version:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*YaleJr5aClozi4B8DH49dA.png" /></figure><p>As Jupyter messages are sent back and forth, a notebook is formed. We use message IDs to route outputs to cells. Users run code, get results, and view representations of their data:</p><pre>send code 📨 →<br>    … run 🐍, run … <br>        → 📨 get result(s)<br>            → 🎉 📊 🎉</pre><p>This very synchronous imperative description doesn’t give the Jupyter protocol (and ZeroMQ for that matter) enough credence. In reality, it’s a hyper reactor of asynchronous interactive feedback, enabling you to iterate quickly and explore the space of computation and visualization. These messages come in asynchronously, and <a href="http://jupyter-client.readthedocs.io/en/latest/messaging.html">there are a lot more messages available within the core protocol</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*cQoL09oJIS9m3OfWrYuRdA.png" /></figure><p>I encourage you to get involved in both the <a href="https://github.com/nteract">nteract</a> and <a href="https://jupyter.org/">jupyter</a> projects. We have plenty to explore and build together, whether you are interested in:</p><ul><li><a href="https://github.com/jupyter/roadmap/blob/8910f6987134e6bdd2d1cf29b39099d4b9274445/spark.md">Spark</a></li><li><a href="https://github.com/nteract/initiatives/tree/master/remote-kernels">Remote Kernels</a></li><li><a href="https://github.com/nteract/hydrogen">Integration with Atom</a></li><li>Edit from the future: <a href="https://github.com/nteract/nteract-next">nteract v2</a></li></ul><p>Feel free to reach out on <a href="https://github.com/nteract/nteract/issues">issues</a> or the <a href="https://discord.com/invite/tQrtRwuxqW">nteract discord</a>.</p><p><em>Thank you to </em><a href="https://medium.com/@captainsafia"><em>Safia Abdalla</em></a><em>, </em><a href="https://medium.com/@lukas.geiger94?source=post_page"><em>Lukas Geiger</em></a><em>, </em><a href="https://medium.com/@ivanov?source=post_page"><em>Paul Ivanov</em></a><em>, </em><a href="https://medium.com/@peggyrayzis?source=post_page"><em>Peggy Rayzis</em></a><em>, and </em><a href="https://medium.com/@willingc"><em>Carol Willing</em></a><em> for reviewing, providing feedback, and editing this post.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cfbccdd4c1d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/nteract/nteract-building-on-top-of-jupyter-9cfbccdd4c1d">nteract: Building on Top of Jupyter</a> was originally published in <a href="https://medium.com/nteract">nteract</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>