Skip to content

Conversation

@disberd
Copy link
Contributor

@disberd disberd commented Nov 9, 2022

Add the possibility of forcing Pluto to always use POST requests when requesting updates from a SliderServer.

Done by using a custom field in the notebook metadata.

This is mostly useful to avoid caching of the reply in cases where one has results that depend on random values and prefers to always get new random results for the same bond variables.

It is also useful to have SliderServer work better when one uses @bind calls generated inside custom made macros that are not correctly parsed by PlutoSliderServer to generate the bond graph

The easiest way to disable caching by enabling this feature is opening your notebook file (on the server) and adding this line at the beginning of the notebook

#> sliderserver_force_post = true

So that your notebook file starts like this (for example):

### A Pluto.jl notebook ###
# v0.19.26

#> sliderserver_force_post = true

Add the possibility of forcing Pluto to always use POST requests when requesting updates from a SliderServer

Done by using a custom field in the notebook metadata.

This is mostly useful to avoid caching of the reply in cases where one has results that depend on random values and prefers to always get new random results for the same bond variables
@github-actions
Copy link
Contributor

github-actions bot commented Nov 9, 2022

Try this Pull Request!

Open Julia and type:

julia> import Pkg
julia> Pkg.activate(temp=true)
julia> Pkg.add(url="https://github.com/disberd/Pluto.jl", rev="patch-5")
julia> using Pluto

@fonsp fonsp merged commit b872d4e into fonsp:main Nov 9, 2022
@fonsp fonsp added the online deployment About deploying to binder, heroku, self-hosted label Nov 28, 2022
@fonsp fonsp added PlutoSliderServer frontend Concerning the HTML editor labels Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Concerning the HTML editor online deployment About deploying to binder, heroku, self-hosted PlutoSliderServer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants