Open stillyslalom opened 4 years ago
@dralletje
😏
We are actually working on something very similar! https://www.notion.so/Notebooks-inside-notebooks-9e99d381c3014e40b310d4846c764a15
(Most of that document is a bit too specific about edge cases and the file format)
Let us know what you think!
I feel like https://www.notion.so/Wrap-cell-code-inside-functions-2a53c3fc6de74bf0a3f9b741e10696f0 gets closer to what I was describing - I want to be able to select an output cell and, from it, generate a method that gets placed in a new cell. This would be a static, user-triggered process, rather than a reactive, continuous thing. The goal is to create ordinary Julia methods that can easily be used within other (Pluto-unaware) parts of the Julia ecosystem, like root-finders or optimization routines.
The idea is to simplify the process of going from a reactive Pluto environment to a (frozen) reusable function. Let's say we've been playing around with data for a while, trying to find![image](https://user-images.githubusercontent.com/4324760/92038653-5c8ec280-ed39-11ea-94f1-18690fa99264.png)
qux
as a function ofbar
:It'd be great to have a way to leverage Pluto's DAG of cell dependencies to automatically create a new cell defining a method
I'd stipulate that the new function would only take variables created via
@bind
as arguments, with all other dependencies set within the function's scope. The user could then modify the function as needed.This enables: