Skip to main content

A JupyterLab extension for tensorboard.

Project description

Jupyterlab-TensorBoard-Pro

Github Actions Status pypi

中文文档

A TensorBoard Jupyterlab plugin.

Install

Requirements

python >= 3.6

Please install the following dependencies before installing this project:

  • jupyterlab
  • tensorflow
  • tensorboard
pip install jupyterlab_tensorboard_pro

only jupyterlab support, not include notebook

Background

In fact, there are already jupyterlab_tensorboard (front-end plugin) and jupyter_tensorboard (corresponding back-end plugin) in the community. side plugin), but both repositories have not been updated for a long time, and some new repair PRs have not been merged in time. Based on this, it is judged that the project author is no longer actively maintaining the corresponding repositories.

At the same time, the existing community TensorBoard plugin has certain experience problems, such as installing two python packages at the same time, no response for a long time after clicking TensorBoard, the TensorBoard Reload time cannot be set. The interactive experience is not friendly enough, which will also affect the user's Jupyterlab experience.

Therefore, this project is forked from the existing projects of the community, makes changes to the logic, and refers to some previous PRs that are more helpful but have not been incorporated for the time being, and will to be maintained for a long time in the future.

Special thanks to the developers of the previous related repositories.

Instructions

Create instance

Create from launcher panel

We can click on the TensorBoard icon from the Launcher panel, the first click will take you to a default initialization panel from which we can create a TensorBoard instance. Non-first entry will directly enter the first active TensorBoard instance.

Created by shortcut command

We can also type Open TensorBoard in the JupyterLab shortcut panel (evoked by ctrl + shift + c)

Parameters

In the initialization panel, two parameters are provided:

  • Log Dir: The default is the directory of the current sidebar when TensorBoard is clicked. You can also manually fill in the corresponding directory. It is recommended to make the directory as detailed as possible. If the directory content is small, the initialization speed will be improved.
  • Reload Interval: How often does TensorBoard backend rescan the corresponding directory. This option is disabled by default. It is recommended to use manually Reload for daily use (The continuous scanning of directories by the TensorBoard backend will have a certain impact on Jupyter's stability and file system).

Select the parameters and click Create TensorBoard, and the TensorBoard instance will be created synchronously. At this time, the jupyter backend is blocking, please wait for the instance to be created before performing other operations.

Manage instances

After the instance is created, we can manage the instance of TensorBoard. Currently, the following functions are provided:

  • Refresh and list switching: TensorBoard backends that can be switched to other instances will not be destroyed at this time.
  • Open in a separate page: You can open TensorBoard in the form of a separate web page Tab.
  • Reload: Reinitialize the TensorBoard backend. When the content of the file is updated, you can load the new content through this function (Note: The refresh inside TensorBoard will not cause Reload).
  • Destroy: Destroy the instance, it will close together with the front panel.
  • Duplicate: reopen an identical frontend panel, this operation will reuse the TensorBoard backend.
  • New: Create an additional TensorBoard backend, please refer to the first part for precautions.

In addition, for the TensorBoard instance we created, it can be managed together in the Kernel management panel of Jupyter, providing functions such as jumping to the corresponding instance and deleting.

Develop

jlpm install
jlpm run install:client
jlpm run install:server

release

python setup.py bdist_wheel --universal

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

jupyterlab_tensorboard_pro-0.3.0rc2-py2.py3-none-any.whl (462.2 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page