Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TFMA UI widgets fail to render in nbconvert HTML conversion #116

Open
kwlzn opened this issue Mar 12, 2021 · 1 comment
Open

TFMA UI widgets fail to render in nbconvert HTML conversion #116

kwlzn opened this issue Mar 12, 2021 · 1 comment

Comments

@kwlzn
Copy link

kwlzn commented Mar 12, 2021

System information

  • Have I written custom code (as opposed to using a stock example script
    provided in TensorFlow Model Analysis)
    : N/A
  • OS Platform and Distribution (e.g., Linux Ubuntu 16.04): CentOS 7
  • TensorFlow Model Analysis installed from (source or binary): 0.27.0
  • TensorFlow Model Analysis version (use command below): 0.27.0
  • Python version: 3.7
  • Jupyter Notebook version: JupyterLab 2.2.9
  • Exact command to reproduce: nbconvert --to html

Describe the problem

Currently, TFDV, Tensorboard and other TFX UI elements that are rendered inline in a Jupyter notebook convert and are usable interactively in an HTML export/render of the notebook. This is highly useful when e.g. publishing a static HTML snapshot of a notebook for sharing with others.

However, the TFMA output widget seems to render as a blank output in this mode. This presents a UX gap in the E2E sharing of TFX pipelines inside Jupyter notebooks.

It is potentially related to #112 (which supercedes #56).

Source code / logs

eval_result = tfma.load_eval_result(eval_result_uri)
tfma.view.render_slicing_metrics(eval_result)
@ZxMYS
Copy link

ZxMYS commented Mar 12, 2021

It seems like the rendered view (its html) is not saved in the notebook. The output of the corresponding cell is an empty array in the notebook file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants