Tensorboard not found as magic function in jupyter

谁说我不能喝 提交于 2019-12-12 09:49:55

问题


I want to run tensorboard in jupyter using the latest tensorflow 2.0.0a0. With the tensorboard version 1.13.1, and python 3.6.

using

... %tensorboard --logdir {logs_base_dir}

I get the error :

UsageError: Line magic function %tensorboard not found

Do you have an idea what the problem could be? It seems that all versions are up to date and the command seems correct too.

Thanks


回答1:


The extension needs to be loaded first:

%load_ext tensorboard.notebook
%tensorboard --logdir {logs_base_dir}

UPDATE

For newer TF versions (tensorflow>=1.14.0 & tensorflow != 2.0.0a0) (newer than TF2-alpha) use

%load_ext tensorboard



回答2:


If you are using TF 2.0 you can execute the code below from your notebook environment, prior to your magic command:

%load_ext tensorboard


来源:https://stackoverflow.com/questions/55970686/tensorboard-not-found-as-magic-function-in-jupyter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!