Fons van der Plas
Fons van der Plas
It should! Try it out [on MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/replace).
I spent some time on this and it is a bit more complicated than I thought (edge cases!). Here's an idea: The problem is that `include(filename)` "takes that code and...
There is another reason to create our own `include`: importing with replacements! This is something very cool from the observablehq universe. Say that you have a notebook `some_analysis.jl` that loads...
Paste this into your notebook to try it out: ```julia function ingredients(path::String) # this is from the Julia source code (evalfile in base/loading.jl) # but with the modification that it...
One thing that would be missing is the equivalent of: ```julia import M: a, b, c ``` which you would have to write as: ```julia N = ingredients("./somewhere.jl") ``` ```...
@karlwessel Have you had a chance to try it out yet? Your eye for edge cases would be very useful!
Thanks karl, hope you're doing well! I looked at it again today, and **oops** it turns out that Pluto does not save your notebook when you use "Submit all changes"...
My test case: https://gist.github.com/fonsp/6fa976ff427079587182c876a02a8d73 Download both into the same directory.
One modification that I would like to make before releasing is that that I want it to support URLs, and this should be promoted. Maybe `local_ingredients(path)` and `ingredients(url)`. Although the...
A cool idea! @dralletje mentioned something similar, and I wrote about it here: https://www.notion.so/Notebooks-inside-notebooks-9e99d381c3014e40b310d4846c764a15 Let me know what you think! About including with replacement: I have been told that this...