Repository navigation
Replies: 1 comment
|
Extracted out this conversation to an issue because it describes a bug. This Q&A will be closed, please follow the issue thread. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have a SQL cell (SQL Server) that defines some local variables that have only a use and scope of that cell. I may use the same variables later in another cell (standard names) but would expect them to be local to that cell as well.
It appears that Verso will only allow a global Code cell to define variables that can then be used through the notebook. I have a global waitTime I want to set once and then reuse in cells: minTime. So that works like you would want.
Unless I am missing something it means that I have to move all my local variables to a global level, and then remember to reset them in each cell to a new starting point. In the example @rows is my loop counter.
Checking a C# Code cell and it allows the local variable definition (which it then promotes to global) and even lets it be redefined
What is the expected approach?
All reactions