Tensorboard tutorial - running code in different cells

I am new to PyThorch and I am trying to go through the tutorials of the official page.

After some struggle, I am able to run the tutorial about Tensorboard, this tutorial .

I am on an Ubuntu 16.04 machine and I am using virtualenvironment. I am using a jupyter notebook.

I would like to know one last thing that is not clear to me. It seems that if I don’t put all the code in one cell the code does not get executed well. Basically what happens is that I can’t see any output if I do a print.

Is this normal?

If you want to give a look to my notebook I copied it here

Thanks a lot for your help.