Access notebook variables from a smart cell #2032
Unanswered
MachinesAreUs
asked this question in
Q&A
Replies: 1 comment
-
Hey, you can look at the SQL cell in Note that if you assume that the variables is named database, then you could actually just do That said, for a single parameter like the database name, personally I don't think it's a big deal if they need to enter it as part of the smart cell, all the code is written for them anyway and the form itself has two inputs. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm trying to create a smart-cell that picks-ups the value of a variable from previous code cells. Specifically I'm trying tho access a string value already defined before in a code cell. The reason to pick this from the environment and not to specify it as an input, is that I would like to create several smart-cells and I wouldn't want the user to define this variable for each of them.
This is my current code,. but I don't get how set the value of
attrs["database"]
from the environment.Any suggestion?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions