Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/juliapluto/plutorestclient.jl
Interact with your Pluto notebooks from other Julia programs!
https://github.com/juliapluto/plutorestclient.jl
Last synced: about 1 month ago
JSON representation
Interact with your Pluto notebooks from other Julia programs!
- Host: GitHub
- URL: https://github.com/juliapluto/plutorestclient.jl
- Owner: JuliaPluto
- License: mit
- Created: 2021-07-01T17:07:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-04T18:14:44.000Z (over 2 years ago)
- Last Synced: 2024-11-10T00:07:23.803Z (about 2 months ago)
- Language: Julia
- Homepage:
- Size: 13.7 KB
- Stars: 20
- Watchers: 4
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PlutoRESTClient.jl
Interact with your Pluto notebooks from other Julia programs!
## How to use
```julia
using PlutoRESTClientnb = PlutoNotebook("MyExampleNotebook.jl")
# Alternatively, if Pluto is running somewhere on the internet...
nb = PlutoNotebook("MyExampleNotebook.jl", "http://example.com:1234")# Gets the value of a variable named `a` from MyExampleNotebook.jl
nb.a
# Gets the value of a variable named `some_other_variable`
nb.some_other_variable# Calls a function called `my_add` defined in MyExampleNotebook.jl
nb.my_add(1, 2)
# Calls a function called `my_subtract` defined in MyExampleNotebook.jl
nb.my_subtract(1, 2)# Updates the values of `a` and `b`
# Returns the new value of `c` after the changes
nb(; a=3, b=4).c