In the previous chapter, we understood how Datalab can be set up. Installing TensorBoard in Datalab is as simple as specifying the following code:
Note that we need not make any separate installations for TensorBoard and it comes in prebuilt within the google.datalab.ml package.
Once the package is imported, we need to start TensorBoard by specifying the location of logs that contain the summaries written by the model fitting process.
The tb.start method works as follows:
Note that, in the first step, it checks whether the user is permitted to perform the calculation. Next, it picks up an unused port to open TensorBoard, and finally it starts TensorBoard along with printing the link to open TensorBoard.
We will learn more about writing to logs in the next section.