UPDATE
For newer TF versions (tensorflow>=1.14.0
& tensorflow != 2.0.0a0
– newer than TF2.0-alpha) load the extension like this
%load_ext tensorboard
OLD ANSWER
The extension needs to be loaded first:
%load_ext tensorboard.notebook
%tensorboard --logdir {logs_base_dir}