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
From the course: Exploring Data Science with .NET using Polyglot Notebooks & ML.NET
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
-
-
-
Notebooks and kernels1m 58s
-
(Locked)
Installing Polyglot Notebooks57s
-
(Locked)
Creating your first Notebook1m 39s
-
(Locked)
C# cells2m
-
(Locked)
Variable sharing between cells3m 3s
-
(Locked)
Declaring classes and methods3m 46s
-
(Locked)
F# cells2m 18s
-
(Locked)
Sharing variables between kernels4m 58s
-
(Locked)
Markdown cells2m 19s
-
(Locked)
Mermaid diagrams5m 59s
-
(Locked)
Importing NuGet packages2m 14s
-
-
-
-
-
-