You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would it be possible to create a function that strips the Pluto-ness from a Pluto notebook and provides a simple julia file? Sometimes it's hard to get a notebook open to debug code.
As a note, I realize there are PlutoUI bits that might make this difficult.
Also: I realize Pluto notebooks are julia files, and can just write the script myself. I am mainly asking to remove the md and comments that look like this # ╔═╡ 0316b94c-eef6-11ea-19bc-dbc959901bb5
The text was updated successfully, but these errors were encountered:
Feel free to write this script yourself! Shouldn't be too tricky - delete any line that starts with one of the delimiters, and maybe also the line before it.
PlutoUI and @bind are designed to "work" without Pluto, as far as this is possible. Notebooks that use @bind include a mock version of the macro, which just assigns the default value of the input element to the variable. The default default value is missing, but types can ovverride this. The elements from PlutoUI all have sensible defaults.
For example, if your notebook contains
@bind x PlutoUI.Slider(5:15)
and you run the notebook without Pluto, then x will be assigned 5.
(There is nothing special about PlutoUI - it's just a small package that generates HTML strings, together with those defaults.)
fonsp
changed the title
No way to convert Pluto notebooks to plain Julia code
Convert Pluto notebooks to plain Julia code
Sep 14, 2020
Would it be possible to create a function that strips the Pluto-ness from a Pluto notebook and provides a simple julia file? Sometimes it's hard to get a notebook open to debug code.
As a note, I realize there are PlutoUI bits that might make this difficult.
Also: I realize Pluto notebooks are julia files, and can just write the script myself. I am mainly asking to remove the md and comments that look like this
# ╔═╡ 0316b94c-eef6-11ea-19bc-dbc959901bb5
The text was updated successfully, but these errors were encountered: