Notebook as a module
with export
s
#2255
Unanswered
greimel
asked this question in
Pluto development
Replies: 1 comment 4 replies
-
I personally don't think you would really get much benefit over just the one-liner with |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It would be nice if there was a way to specify that a notebook is wrapped into a
module
. Even better if one could specifyexport
s.The default module name could be the filename without
.jl
.Currently, when you want to develop a package in Pluto you need to create a second file, just to create the module and specify exports. See for example here
https://github.com/JuliaPluto/PlutoTest.jl/blob/9931f5a6a65cc8711cdf68829bf0f6a9d8093e1c/src/PlutoTest.jl#L1-L5
You can find such an instance even for some submodules of Pluto.jl itself.
Pluto.jl/src/webserver/Dynamic.jl
Lines 80 to 85 in 72555ed
Beta Was this translation helpful? Give feedback.
All reactions