Start tensorboard in Jupyter! Jupyter notebook integration for tensorboard
Project description
Tensorboard Integration for Jupyter Notebook.
A jupyter server extension for jupyter notebook and tensorboard (a visualization tool for tensorflow) which provides graphical user interface for tensorboard start, manage and stop in jupyter interface.
Installation
Be sure that tensorflow(-gpu)>=1.3.0 has been installed. If not, you should install or upgrade your tensorflow>=1.3.0 first, and tensorbaord is a dependency of tensorflow so that it is automatically installed. This package does not have a tensorbaord or tensorflow dependency because there are several versions of tensorflow, for example, tensorflow and tensorflow-gpu, if jupyter_tensorboard requires any version of the tensorflow, it will install the version and abrupt the environment. Any way, you must be sure you have tensorflow(-gpu) installed before install this package.
Install the pip package. The python version must be the same as Jupyter: if you start jupyter notebook in python3, pip3 may be used to install the package
pip(3) install jupyter_tensorboard
NOTE:
The python version are important, you must be sure that your jupyter, jupyter_tensorboard, tensorflow have the same python version. If your tensorflow python and jupyter python versions are different, e.g., use tensorflow in py2 but jupyter starts in py3, both versions of tensorflow(py2 and py3) should be installed, and jupyter_tensorboard should install to py3, in accordance with jupyter.
Enabling the notebook server to load the server extension. A jupyter subcommand is provided for this. You can enable the serverextension and the configurator nbextensions listed below for the current user with
jupyter tensorboard enable --user
The command accepts the same flags as the jupyter serverextension command provided by notebook versions >= 5.0, including --system to enable in system-wide config (the default), or --sys-prefix to enable in config files inside python’s sys.prefix, such as for a virtual environment. The provided jupyter tensorboard command can also be used to disable.
Restart the jupyter notebook server.
Usage
Once jupyter_tensorboard is installed and enabled, and your notebook server has been restarted, you should be able to find the interfaces to manage tensorboard instances.
In notebook tree view, select a directory, a tensorboard button will be presented. Click the button, a new browser tab will be opened to show the tensorboard interface with the proposed directory as logdir.
In notebook tree view, click the tensorbaord menu in new and a new tensorbaord instance is started with current directory as logdir.
In notebook running tab, a list of tensorboard instances are showed. Managing operations such as browsing, navigating, shutdown can be found here.
The tensorbaord instance interface is in http://jupyter-host/tensorboard/<name>/ with the instance names increasing from 1.
Troubleshooting
If you encounter problems with this server extension, you can:
check the issue page for this repository. If you can’t find one that fits your problem, please create a new one!
For debugging, useful information can (sometimes) be found by:
Checking for error messages in the browser’s Javascript console.
Checking for messages in the notebook server’s logs. This is particularly useful when the server is run with the –debug flag, to get as many logs as possible.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for jupyter_tensorboard-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b099e7de480f2a34252b42b3522585ff6f833630aaed74fa3e27c38a5756b8de |
|
MD5 | 2a4e50ba32ff26b12ebe97e30cb069a2 |
|
BLAKE2b-256 | bbac468c4dc18bb6891f875e911fe60df014240aaf44c0c87e44f7e1e99b41d2 |
Hashes for jupyter_tensorboard-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7ce47fa4ec356dea5f5980298b4531d105aa41e230286b1bda4355884f08d2b |
|
MD5 | 06002280b7561a65a5882a7b394985a1 |
|
BLAKE2b-256 | 673ebb11ab93c88f4b494f36461e753eaf62306d6e4931c32d58116dc7c8288a |