Load .env file in .NET Interactive Notebook. This package helps .NET Notebook player custom their environment easier.
Try it by running: #!env -f [file-path] -n [variable-name]
You can use #!env --help
in .NET Notebook to get help description.
#!env
Load .env to .NET Interactive Notebook.
Usage:
[options] #!env
Options:
-f, --file-path <file-path> The .env file path
-n, --var-name <var-name> The variable name which contain the .env setting
-?, -h, --help Show help and usage information
Assume you have a .env
file in your project root directory. After install this magic command in .NET Notebook, you can use it like this:
#!env -f ".\.env" -n MyEnv
display(MyEnv["YOUR_VARIABLE"]);
You can find more notebook samples in samples
folder.