Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Code the Docs: Interactive Document Environments

Code the Docs: Interactive Document Environments

Distributing example code and applications with documentation is now easy. There are a million different ways to get code to people: from zips, to GitHub, to gists, and beyond. Code is easy to distribute. But how do we create a better link between example code, and written documentation?
Luckily, clever boffins have come up with some solutions: interactive document environments. These let the live code and the documentation sit side-by-side with one another, the distributed example code is the documentation.
This talk will take a brief look at some of the different interactive document environments out there – mainly IPython Notebooks and Swift Playgrounds – and the various strengths, weaknesses, and caveats of these tools. We’ll also explore the future, and discuss where these tools are going, as well as the implications for technical documentation.

Tim Nugent

May 24, 2016
Tweet

More Decks by Tim Nugent

Other Decks in Technology

Transcript

  1. Interactive document environments? » Swift Playgrounds » IPython Notebooks »

    ... which are now Jupyter Notebooks » ...and a few others Write the Docs PDX 2016 21
  2. Core Features » live code » pretty formatting » ability

    to add new notes » media rich (gifs, videos, etc.) » real programming, not a special wrapper Write the Docs PDX 2016 22
  3. Swift » Introduced 2 years ago by Apple » Currently

    at version 2.2 » Made open source in December 20151 » Apache License 2.0 » Currently supports OS X and Linux » Windows support on the way 1 For more information on the Swift project, check out their website: http://swift.org/ Write the Docs PDX 2016 25
  4. Swift Playgrounds » an interactive Swift coding environment » each

    statement is evaluated and displayed » designed for prototyping, experimentation, and learning » can be paginated » supports Markdown (yay?!) and HTML Write the Docs PDX 2016 26
  5. IPython Notebooks » Interactive Python coding environment » works pretty

    much the same as Swift Playgrounds » designed for academic and scientific documentation » Supports text, equations, and graphs Write the Docs PDX 2016 28
  6. Project Jupyter » Successor to IPython » Started in 2014

    » Supports multiple languages » Otherwise the same as IPython Notebooks » Used by O'Reilly Media for "Oriole" Write the Docs PDX 2016 30
  7. Strengths » Code and Docs literally together » ... also

    notes by the person reading the docs » Can change things on the fly » Mixed Media Write the Docs PDX 2016 41
  8. I find the documentation and my own notes living alongside

    the code to be incredibly handy. It means I don't get lost learning this language and APIs. — feedback from Swift training in Melbourne, May 2016 Write the Docs PDX 2016 43
  9. Weaknesses » Only Markdown(ish) and HTML(ish) » Kinda crashy... »

    Limited language/framework support » Doesn't hook into docs tools » Only really works for narratives Write the Docs PDX 2016 45
  10. What's next? » Boffins will fix the tech » Be

    easier to add in new languages & projects » This will replace/become books & articles » Better support for non-narrative documentation » More integration with video and screensharing Write the Docs PDX 2016 46
  11. Where to learn more... » On a Mac? Download Xcode

    from the App Store » Then play in Playgrounds. » On something else? Download Jupyter Notebook » The process is complex » The docs for this are bad... » or go to: https://try.jupyter.org Write the Docs PDX 2016 47
  12. O'Reilly Oriole » Try Regex Golf: » oreilly.com/learning/regex-golf-with-peter-norvig » Learn

    more about Oriole: » oreilly.com/ideas/oreilly-oriole-learn-alongside- innovators-thought-by-thought-in-context Write the Docs PDX 2016 48
  13. Thanks! » Questions? Find us up the front.. » ..

    or find us on Twitter! » @the_mcjones (horse) » @parisba (not horse) » Slides and notes will be online at: » http://lonely.coffee and » http://blog.paris.id.au Write the Docs PDX 2016 50