Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliapluto/plutohooks.jl
Get hooked on Pluto!
https://github.com/juliapluto/plutohooks.jl
julia-language pluto-notebooks
Last synced: 3 months ago
JSON representation
Get hooked on Pluto!
- Host: GitHub
- URL: https://github.com/juliapluto/plutohooks.jl
- Owner: JuliaPluto
- License: mit
- Created: 2021-10-27T13:03:19.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-12T09:45:21.000Z (11 months ago)
- Last Synced: 2024-10-12T19:21:42.077Z (3 months ago)
- Topics: julia-language, pluto-notebooks
- Language: Julia
- Homepage: https://juliapluto.github.io/PlutoHooks.jl/src/notebook.html
- Size: 440 KB
- Stars: 23
- Watchers: 5
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![tikz_networks-1](https://github.com/JuliaPluto/PlutoHooks.jl/assets/9824244/beea2ac6-405f-4725-9a16-d6f48c392266)
# PlutoHooks.jl
Get hooked on Pluto! Bring your notebook to life! This is an abstraction based on [React.js Hooks](https://reactjs.org/docs/hooks-intro.html) to implement "react-like" features in [Pluto.jl](https://plutojl.org).
It allows code cells to carry information and processes between updates, and even update themselves.
The PlutoHooks macros are used as a foundation for the higher-level utilities in [PlutoLinks.jl](https://github.com/JuliaPluto/PlutoLinks.jl). The source code is written as a Pluto notebook, which also serves as [package documentation](https://juliapluto.github.io/PlutoHooks.jl/src/notebook.html).There is a lot you can do with this, but some examples:
- Maintain state between cell evaluations.
- Run a process and relay its output to the rest of your notebook.
- Watch a file and reload the content when it changes.
- Do a computation on separate thread while the rest of notebook continue running.This requires using Pluto with a version higher than 0.17.2.