Skip to content
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

Ability to create or reuse some variables #52

Open
sbatten opened this issue Jan 27, 2022 · 2 comments
Open

Ability to create or reuse some variables #52

sbatten opened this issue Jan 27, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@sbatten
Copy link
Collaborator

sbatten commented Jan 27, 2022

Scenario:

I have a series of cells that require some repeated string or scalar value.

In kusto, I must put let x="value"; at the beginning of every cell to use this variable. It would be nice allow setting constants in a single cell and be able to reuse these values in later cells.

@sbatten sbatten added the enhancement New feature or request label Jan 27, 2022
@joaocc
Copy link

joaocc commented Jan 29, 2022

We also have the same need, but for a function.
Is there any documentation or tutorial on how to use KNB from the point of view of a jupyter notebook user (which concepts are applicable in knb)?
Thx

@sunb0002
Copy link

This is really needed.
A simple solution might be a dedicated cell (like "beforeEach") to place let assignments. It doesn't generate any outputs, but just run itself every time behind the scene.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants