-
Notifications
You must be signed in to change notification settings - Fork 45
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
Can environment variables be reset within a session? #653
Comments
Could you please share the raw markdown, @jlewi? I can only be 100% sure by checking the cell settings in your specific file. What's likely going on is that PS: The new beard 🧔♂️ looks good 👌 |
Here you go. If I set to "Yes". Then when I execute the cell it prompts me and I can override the value.
I don't think that's what's happening. It looks like even when its set to no; the value doesn't get reset when executing the cell. It looks like the value only gets set the first time the cell is executed in the session. RunMe-EnvironmentVariables-.mp4 |
Thanks for the clarification, @jlewi. The issue I'm seeing is that the I do see a valid point for your use-case/scenario, though. You basically just want it to "work like shell". I'd suggest we introduce a fourth mode to the existing Should be able to turn this around fairly quickly since it's basically noop for Runme's "program resolver". Wdyt @jlewi? We'll also make the docs more specific. PS: Working on the rollout of |
Thanks. So to summarize the intended semantics are
Adding a 4th option "shell" to behave like the shell would be great for my purposes. Out of curiousity, do you have an example of when you'd want the "no" semantics? What would be a situation where you would i) change the value in a cell and ii) reexecute the cell but want the original value of the variable to preserved. Thinking out loud:Did you consider other UXs to allow users to easily set parameters in their notebooks without saving them?
Did you consider letting users edit code cells and then not persisting those changes? So in the example where you have a code cell with
|
Correct. However, for If I had to categorize Runme users, that's most of the user base. I see you in the programmatic Jupyter-style bracket (I wonder if that's fair; feel free to disagree).
As mentioned above, it's when teams share notebooks in repositories colocated with code or IaC. The author isn't always the same as the consumer and maintenance might be shared.
I slept on this and now realize that my suggestion to have a 4th "shell" option is flawed. I realized that
I love your suggestions and the discussion here. Balancing generic sharable notebooks with the "will just work" properties is far from complete. I also see how different mechanisms aren't mutually exclusive. I need to noodle on this more. However, it shouldn't stop us from unblocking what you want to do. |
I have both use cases
Or put another way
Right now my use tilts more to #2 because I'm working mostly on my own. In the case of #1, I often find myself wanting to make ephemeral edits or insert "ephemeral cells" that are only for me. Or when dealing with this issue dependency issue I added a cell with the commands.
This is a bit of a digression and roundabout way of saying
|
My expectation is that I could set and export an environment variable multiple times. However, this doesn't appear to be the case.
It looks like I can only set an environment variable once per session.
Is this working as intended?
Here's a video
https://github.com/user-attachments/assets/32a39863-1b7f-48e5-9264-2269e7e62e7d
The text was updated successfully, but these errors were encountered: