Hi Ekaterina,
Brilliant, thanks!
I also found another solution by changing this line of code:
logdir = pathlib.Path(tempfile.mkdtemp())/“tensorboard_logs”
to this:
logdir = pathlib.Path.cwd()/“tensorboard_logs”
After a long search, it appears that the first line of code creates the “tensorboard_logs” in the ‘AppData>Local>Temp’  directory. The second line of code fixed it by creating that folder in the current working directory of the project.
Thanks.