notebookPowerTools / vscode-kusto

Kusto Notebooks
MIT License
27 stars 8 forks source link

Ability to create or reuse some variables #52

Open sbatten opened 2 years ago

sbatten commented 2 years ago

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.

joaocc commented 2 years ago

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 commented 1 year ago

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.