Troubleshooting notebook execution
Polyglot Notebooks is powerful and allows you to do some really interesting things, as we’ll see over the remaining chapters of this book.
However, it’s important to know how to handle potential issues you encounter when running your notebooks.
Resolving compiler errors
Because the code we send Polyglot Notebooks must be compiled, that means you still need to worry about writing valid code and resolving compiler errors.
VS Code provides reliable code completion and syntax highlighting for the languages supported by Polyglot Notebooks. This means that you get red squiggly lines when VS Code detects compiler issues with your code.
If you try to run code that doesn’t compile, you’ll see the compiler error detailed below the cell, as shown here:
Figure 2.25 – A compiler error below a code cell
The steps for resolving these issues are largely the same for programming in general...