-
-
Notifications
You must be signed in to change notification settings - Fork 293
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow to provide environment at notebook start #1788
Comments
I often have one server opened with notebooks belonging to different projects, Since PR #2018, it is possible to "Disable in file" a particular cell (make it " That comments out the cell code in the file, |
Yes, this works well when the notebook is part of some project. My case is a bit different. I figured out that the situation intended with #2614 can be emulated in the following way:
If I give the environment variable I the variable is not given, we have just a normal notebook. My feeling is however that this behaviour is not guaranteed as a documented feature of Pluto.jl. Nevertheless I will use it for the time being. |
Maybe it is just sufficient to have a switch which disables PlutoPkg and runs the notebook in the environment of the caller. |
I think about something like
Pluto.run(notebook=..., project=... )
. This would start the notebook with the environment provided underproject
instead of the notebook environment. A similar option toPluto.SessionActions.open
and corresponding methods of PlutoSliderServer.jl would be nice.The main use case is the use of Pluto notebooks as package tutorials which at once are used in the documentation and in CI.
Outside of these contexts, and without providing an environment, the notebook should run in "reproducible mode" using PlutoPkg with a fixed version of the package.
I find it important that switching between these two modes is possible without changes in the notebook
(like e.g. "markdowning" a cell with
Pkg.activate
.In the moment I achieve this behavior in a quite hackish way.
The the initial proposal in #1281 seems to have a similar effect.
A slightly related discussion is found here. EDIT: May be @kellertuer is interested in this as well.
The text was updated successfully, but these errors were encountered: