From the course: Exploring Data Science with .NET using Polyglot Notebooks & ML.NET

Unlock this course with a free trial

Join today to access over 25,300 courses taught by industry experts.

Variable sharing between cells

Variable sharing between cells

- [Instructor] Polyglot Netbook's Editor in VS Code provides a few handy ways of running your notebook. If we look at the line above our cell, we see we have an ability to add a new code cell, add a new markdown cell, the ability to run all cells in our notebook, the ability to restart our notebook from the beginning without running any cells, and the ability to clear all outputs, which removes any prior output from our cells, as we see here. When I click run all, it'll rerun everything in our notebook, which is very handy. Now the one I really want to highlight your attention here is the variables view. When I click on variables, it shows all the variables declared by any kernel within my Notebook environment. We'll talk more about what that means when we get into F sharp as well as C sharp. But for now, see that there is a greeting variable with a value of Hello World that is of type string. So this is really like seeing the current object state in memory in our dot net application.…

Contents