@def title = "Pluto" @def hascode = false
@def tags = ["reporting"]
\toc
As you might have guessed by the .jl
extension Pluto is a library written in and developed for Julia.
With Pluto.jl
Julia provides notebooks that are simple, lightweight and reactive. The notebooks can be shared easily since they also keep track of the used packages and their versions. By using PlutoUI.jl
one can add UI elements like sliders, text fields and so on. It also has markdown support and it is possible to create a nice looking HTML export.
To get started, simply add Pluto
and start the Pluto server with:
julia> using Pluto
julia> Pluto.run()
[ Info: Loading...
┌ Info:
└ Opening http://localhost:1234/?secret=J6cPXwBB in your default browser... ~ have fun!
In the end, Pluto should automatically get opened in your default browser.
Check our sample notebook and please note that UI elements are only working when the code is run within Pluto. On the top right you will find instructions on how to run the code on your machine.
Pluto has a hidden JavaScript function called present()
which turns your notebook into a collection of slides. All the reactive elements and interactivity is kept.
html"<button onclick='present()'>present</button>"