Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
47 commits
Select commit Hold shift + click to select a range
5c04f05
Changes ScoreBar background color to Cyea-300 and text color to Neutr…
RyanMullins Nov 10, 2021
3a417ee
Fixes naming inconsistency in Minor Tonal Palettes implementation
RyanMullins Nov 10, 2021
005111b
Adds default colors, palettes, and ramps to lib/colors for data visua…
RyanMullins Nov 11, 2021
767abc0
Adds unit tests for LIT colors library
RyanMullins Nov 11, 2021
228737e
Add option in notebook mode to display LIT UI in new tab.
jameswex Nov 11, 2021
902efaa
Custom notebook-focused layout with a single row and several tabs.
iftenney Nov 11, 2021
54d47e5
Updates hairline button styles to the brand colors
RyanMullins Nov 11, 2021
19f635e
Pass target classes as string for IG, rather than indices.
iftenney Nov 11, 2021
f813107
Perform PCA using numpy instead of sklearn.
jameswex Nov 11, 2021
e7521ac
Internal change
a-googler Nov 12, 2021
7527293
Updates Colors, ColorService, ClassificationService, and RegressionSe…
RyanMullins Nov 12, 2021
9dfe8ad
Derives union types for color values from "as const" arrays
RyanMullins Nov 15, 2021
ad8fbee
Fix broken link on website.
jameswex Nov 15, 2021
90deae4
Internal change
jameswex Nov 15, 2021
b52a4ce
Dockerfile optimizations and support for run-time arguments
RyanMullins Nov 17, 2021
1f5bf2c
All public demos now export a LitApp instance from main() and provide a
RyanMullins Nov 18, 2021
b9028d8
Bug fixes in Scalars module
RyanMullins Nov 18, 2021
a03db30
Internal change
a-googler Nov 18, 2021
2c55faf
Use image thumbnails in embedding projector when using image data.
jameswex Nov 18, 2021
7b2a016
Fixed threshold line y values in Scalars module
RyanMullins Nov 18, 2021
145e9f6
Aligning Table (hover + selected) and Scalars (hover) colors with LIT…
RyanMullins Nov 18, 2021
b43b4fa
Select fields to operate on for generator module.
a-googler Nov 23, 2021
76f2fd0
TCAV score bar now conveys magnitude relative to the baseline + align…
RyanMullins Nov 24, 2021
3171d55
Unifies icon-button styles in shared styles and aligns with the brand…
RyanMullins Nov 24, 2021
f5342be
Adjust select.dropdown classes to align with LIT hairline styles
RyanMullins Nov 29, 2021
de65c87
Allow passing of LIT UI URL params to notebook widget.render method.
jameswex Nov 30, 2021
4c4d393
Styles the threshold slider according to the LIT brand palettes
RyanMullins Nov 30, 2021
61c266f
Fix notebook render issue. Do not encode unspecified params in the URL.
jameswex Dec 1, 2021
096d540
This lays the interface and API foundation for user-defined faceting …
RyanMullins Dec 1, 2021
5951e73
Add generic serialize and deserialize methods to lit.Dataset.
tolga-b Dec 2, 2021
7eac05d
Add a clustering component to the LIT.
eberts-google Dec 2, 2021
16318bb
Adjusting fill and stroke styles for line and bar charts
RyanMullins Dec 2, 2021
ea35519
Internal change
a-googler Dec 3, 2021
5208b36
Fixes a labeling bug in the Data Matrix when hiding empty labels.
RyanMullins Dec 3, 2021
4f85565
Data table property to configure vertical text alignment in cells
RyanMullins Dec 6, 2021
3dc0bea
Sets the ScatterGL fog threshold to 4 to improve visbility of embeddings
RyanMullins Dec 10, 2021
bc2a161
Add tests to run OSS demo models
jameswex Dec 10, 2021
72c0ec8
Fixes button style and layout inconsistencies in settings pane
RyanMullins Dec 10, 2021
34dcfe3
Switches salience color maps to use linear ramps through the LAB colo…
RyanMullins Dec 14, 2021
7208bd5
Enable LIME for SparseMultilabelPreds model outputs
jameswex Dec 14, 2021
65fb2cd
Use explicit `any` type for untyped catch variables.
a-googler Dec 20, 2021
bcaf4c3
Content updates for the v0.4.1 release
RyanMullins Dec 20, 2021
833f11d
Update scatter-gl version for OSS
jameswex Dec 20, 2021
f347fad
Add thread lock to glue model tokenizer call and update demos version.
jameswex Dec 20, 2021
995d5a9
Updating publlic website for v0.4.1 release
RyanMullins Dec 20, 2021
30eb119
fixing a bug in the partials template
RyanMullins Dec 20, 2021
9fd2da3
Merge pull request #598 from PAIR-code:website-0_4_1
a-googler Dec 20, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 20 additions & 13 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,31 @@
# https://hub.docker.com/_/python
FROM python:3.7-slim

# Default demo app command to run.
ENV APP_COMMAND "lit_nlp.examples.lm_demo:get_wsgi_app()"

# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./

# Update Ubuntu packages and install basic utils
RUN apt-get update
RUN apt-get install -y wget curl gnupg2 gcc g++

# Install yarn
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | \
tee /etc/apt/sources.list.d/yarn.list
RUN apt update && apt -y install yarn

# Install Anaconda
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3 \
&& rm Miniconda3-latest-Linux-x86_64.sh
&& bash Miniconda3-latest-Linux-x86_64.sh -b -p /opt/anaconda3 \
&& rm Miniconda3-latest-Linux-x86_64.sh

# Set path to conda
ENV PATH /opt/anaconda3/bin:$PATH

# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./

# Set up conda environment with production dependencies
# This step is slow as it installs many packages.
COPY environment.yml .
RUN conda env create -f environment.yml

# Workaround for 'conda activate' depending on shell features
Expand All @@ -50,5 +47,15 @@ WORKDIR lit_nlp/client
RUN yarn && yarn build && rm -rf node_modules/*
WORKDIR $APP_HOME

# Default demo app command to run.
ARG DEFAULT_DEMO="glue_demo"
ENV DEMO_NAME $DEFAULT_DEMO

ARG DEFAULT_PORT="5432"
ENV DEMO_PORT $DEFAULT_PORT

# Run LIT server
CMD exec gunicorn -c lit_nlp/examples/gunicorn_config.py $APP_COMMAND
ENTRYPOINT exec gunicorn \
-c lit_nlp/examples/gunicorn_config.py \
--bind="0.0.0.0:$DEMO_PORT" \
"lit_nlp.examples.$DEMO_NAME:get_wsgi_app()"
25 changes: 21 additions & 4 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,37 @@
# Language Interpretability Tool releases

## Release 0.4.1

This is a bug fix release aimed at improving visual clarity and common
workflows.

The UI has been slightly revamped, bugs have been fixed, and new capabilities
have been added. Notable changes include:

- Adds "open in new tab" feature to LIT Notebook widget
- Adds support for `SparseMultilabelPreds` to LIME
- Improves color consistency across the UI
- Switching NumPy instead of SciKit Learn for PCA
- Ensuring all built-in demos are compatible with the Docker
- Updating the Dockerfile to support run-time `DEMO_NAME` and `DEMO_PORT` args
- Fixed a rendering bug in the Confusion Matrix related column and row spans
when "hide empty labels" is turned on

## Release 0.4

This release adds a lot of new features. The website and documentation have
been updated accordingly.

The UI has been slightly revamped, bugs have been fixed, and new capabilities
have been added. Noteable changes include:
have been added. Notable changes include:
- Support for Google Cloud Vertex AI notebooks.
- Preliminary support for tabular and image data, in addition to NLP models.
- Addition of TCAV global interpretability method.
- New counterfactual generators for ablating or flipping text tokens for
minimal changes to flip predictions.
- New counterfactual generator for tabular data for minimal changes to flip
predictions.
- Partial depdence plots for tabular input features.
- Partial dependence plots for tabular input features.
- Ability to set binary classification thresholds separately for different
facets of the dataset
- Controls to find optimal thresholds across facets given different fairness
Expand All @@ -26,12 +43,12 @@ This release adds the ability to use LIT directly in colab and jupyter
notebooks. The website and documentation have been updated accordingly.

The UI has been slightly revamped, bugs have been fixed, and new capabilities
have been added. Noteable changes include:
have been added. Notable changes include:
- Notebook mode added.
- New annotated text visualization module added.
- Allow saving/loading of generated datapoints, and dynamic adding of new
datasets by path in the UI.
- Added syncronized scrolling between duplicated modules when comparing
- Added synchronized scrolling between duplicated modules when comparing
datapoints or models.
- Added a focus service for visually linking focus (i.e. hover) states between
components.
Expand Down
Binary file modified docs/assets/images/actor_to_actress.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/actress_relative_cav.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-coref-compare.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-coref-data.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-coref-metric-top.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-coref-metrics.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-coref-pred.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-coref-select.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-datatable-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-metrics-not.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-not-saliency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-saliency.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-sim-search.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-t5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-toolbars.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit-tweet.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/assets/images/lit-workspaces.jpg
Binary file not shown.
Binary file added docs/assets/images/lit-workspaces.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit_data_table_annotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit_slice_editor_annotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit_tcav_screen_annotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/lit_tcav_settings_annotated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/tcav_result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/tcav_results_2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/demos/coref.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script>
window.location.replace("http://35.225.219.27/");
window.location.replace("http://34.86.17.245:5431/");
</script>
</html>
2 changes: 1 addition & 1 deletion docs/demos/glue.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script>
window.location.replace("http://34.69.145.124/");
window.location.replace("http://34.86.17.245:5432/");
</script>
</html>
2 changes: 1 addition & 1 deletion docs/demos/images.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script>
window.location.replace("http://104.155.142.190/");
window.location.replace("http://34.86.17.245:5433/");
</script>
</html>
8 changes: 4 additions & 4 deletions docs/demos/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@
<div class="demo-card-cta-button"><a href="/lit/demos/glue.html"></a></div>
</div>
<div class="demo-card mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone">
<div class="demo-card-title"><a href="/lithttps://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb" target="_blank">Notebook usage</a></div>
<div class="demo-card-title"><a href="https://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb" target="_blank">Notebook usage</a></div>
<div class="demo-card-tags"> <span class="demo-tag"> BERT </span> <span class="demo-tag"> binary classification </span> <span class="demo-tag"> notebooks </span>
</div>
<div class="demo-card-data-source-title">DATA SOURCES</div>
<div class="demo-card-data-source-title">DATA SOURCE</div>
<div class="demo-card-data-source">
Stanford Sentiment Treebank
<a href="" target="_blank">Stanford Sentiment Treebank</a>
</div>
<div class="demo-card-copy">Use LIT directly inside a Colab notebook. Explore binary classification for sentiment analysis using SST2 from the General Language Understanding Evaluation (GLUE) benchmark suite.</div>
<div class="demo-card-cta-button"><a href="/lithttps://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb"></a></div>
<div class="demo-card-cta-button"><a href="https://colab.research.google.com/github/PAIR-code/lit/blob/main/lit_nlp/examples/notebooks/LIT_sentiment_classifier.ipynb"></a></div>
</div>
<div class="demo-card mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--4-col-phone">
<div class="demo-card-title"><a href="/lit/demos/coref.html" target="_blank">Gender bias in coreference systems</a></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/demos/lm.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script>
window.location.replace("http://104.197.40.13/");
window.location.replace("http://34.86.17.245:5433/");
</script>
</html>
2 changes: 1 addition & 1 deletion docs/demos/penguins.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script>
window.location.replace("http://35.222.78.90/");
window.location.replace("http://34.86.17.245:5435/");
</script>
</html>
2 changes: 1 addition & 1 deletion docs/demos/t5.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<html>
<script>
window.location.replace("http://34.68.143.28/");
window.location.replace("http://34.86.17.245:5436/");
</script>
</html>
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<li>Does my model behave consistently if I change things like textual style, verb tense, or pronoun gender?</li>
</ul>
<p>LIT contains many built-in capabilities but is also customizable, with the ability to add custom interpretability techniques, metrics calculations, counterfactual generators, visualizations, and more.</p>
<p>LIT also contains preliminary support for non-language models, working with tabular and image data. For a similar tool built to explore general-purpose machine learning models, check out the <a href="https://whatif-tool.dev">What-If Tool</a>.</p>
<p>In addition to language, LIT also includes preliminary support for models operating on tabular and image data. For a similar tool built to explore general-purpose machine learning models, check out the <a href="https://whatif-tool.dev">What-If Tool</a>.</p>
<p>LIT can be run as a standalone server, or inside of python notebook environments such as Colab, Jupyter, and Google Cloud Vertex AI Notebooks.</p>
</div>
<div class="spacer" style="height:50px;"></div>
Expand Down Expand Up @@ -155,7 +155,7 @@ <h3 class="home-card-title">Version 0.4</h3>
</div>
<div class="mdl-cell mdl-cell--6-col mdl-cell--4-col-tablet mdl-cell--8-col-phone">
<img class="home-card-image" src="/lit/assets/images/LIT_Contribute.png"/>
<div class="home-card-action">CODE</div>
<div class="home-card-action">DOCS</div>
<h3 class="home-card-title">Documentation</h3>
<div class="home-card-desc">LIT is open-source and easily extensible to new models, tasks, and more.</div>
<div class="home-card-cta-button"><a href="https://github.com/PAIR-code/lit/wiki" target="_blank" >View documentation</a><img class="external-arrow" src="/lit/assets/images/arrow-link-out.png"/></div>
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/generation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ <h2>Debugging a Text Generator</h2>
from the T5 decoder. With one click, we retrieve the 25 nearest neighbors to our datapoint of interest from the training set and add them to the LIT UI for inspection. We can see through the search capability in the data table that the words “captain” and “former” appear 34 and 16 times in these examples–along with 3 occurrences of “replaced by” and two occurrences of “by former”. This suggests a strong prior toward our erroneous phrase from the training data most related to our datapoint of interest.</p>
<div class="mdl-cell mdl-cell--12-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
<img class="tutorial-image" src="/lit/assets/images/lit-datatable-search.png"/>
<div class="tutorial-caption">Above: An example of the existance of "by former" in a similar datapoint from the training set.</div>
<div class="tutorial-caption">Above: An example of the existence of "by former" in a similar datapoint from the training set.</div>
</div>

</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/tcav/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ <h4>Create a Concept</h4>
<div class="tutorial-caption">1: Selecting a slice as a concept and 2: running TCAV with the specified options</div>
</div>
<h4>Interpreting TCAV scores</h4>
<p>Once we run TCAV, we see an entry in the table in the TCAV module for each concept tested. Each concept gets a CAV (“Concept Activation Vector”) score between 0 and 1 describing the concept’s effect on the prediction of the class in question. What you want to look at is where the blue bar (CAV score) is relative to the black line (reference point). The reference point indicates the effect that slices made of randomly-chosen datapoints outside of the concept being tested has on prediction of the class. For a well-calibrated classifier, the reference point will usually be near 0.5 (i.e. no effect).</p>
<p>A blue bar extending beyond or falling short of the black line means the concept is influencing the prediction. If the blue bar extends beyond the black line, the concept is positively influencing the prediction; if it falls short, it is negatively influencing.</p>
<p>In our example, the CAV score of ~.85 indicates that our “acting” concept has a strong positive effect on the prediction of this class. So we have found that this concept has a positive effect on predicting positive sentiment for our classifier.</p>
<p>Once we run TCAV, we see an entry in the table in the TCAV module for each concept tested. Each concept gets a CAV (“Concept Activation Vector”) score between 0 and 1 describing the concept’s effect on the prediction of the class in question. What matters is where the blue bar (CAV score) is relative to the black line (reference point). The reference point indicates the effect that slices made of randomly-chosen datapoints outside of the concept being tested has on prediction of the class. For a well-calibrated classifier, the reference point will usually be near 0.5 (i.e. no effect).</p>
<p>A blue bar extending right or left of the black line means the concept is influencing the prediction. If the blue bar extends to the right of the black line, the concept is positively influencing the prediction. Conversely, if the bar extended to the left, it is negatively influencing. In either case, the larger the bar, the greater the influence.</p>
<p>In our example, the CAV score of ~0.91 indicates that our “acting” concept has a strong positive effect on the prediction of this class. So we have found that this concept has a positive effect on predicting positive sentiment for our classifier.</p>
<div class="mdl-cell mdl-cell--12-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
<img class="tutorial-image" src="/lit/assets/images/tcav_result.png"/>
<div class="tutorial-caption">TCAV results for our “acting” concept</div>
Expand Down
6 changes: 3 additions & 3 deletions docs/tutorials/tour/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ <h2>A Quick Tour of the Language Interpretability Tool</h2>
<h3>Building blocks - modules, groups, and workspaces</h3>
<p><strong>Modules, groups, and workspaces</strong> form the building blocks of LIT. Modules are discrete windows in which you can perform a specific set of tasks or analyses. Workspaces display combinations of modules known as groups, so you can view different visualizations and interpretability methods side-by-side.</p>
<div class="mdl-cell mdl-cell--12-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
<img class="tutorial-image" src="/lit/assets/images/lit-workspaces.jpg"/>
<img class="tutorial-image" src="/lit/assets/images/lit-workspaces.png"/>
<div class="tutorial-caption">Above: Building blocks of the Language Interpretability Tool: (1) Modules, (2) Groups, (3) Static workspace, (4) Group-based workspace.</div>
</div>
<p>LIT is divided into two workspaces - a Main workspace in the upper half of the interface, and a Group-based workspace in the lower half.</p>
Expand All @@ -108,7 +108,7 @@ <h3>Toolbars</h3>
<ul>
<li>Select data points by relationship, or by slice.</li>
<li>Choose a feature to color data points, across all modules.</li>
<li>Track the datapoint you’re looking at, navigate to the next, mark a datapoint as a favorite, or clear your selection.</li>
<li>Track the datapoint you are looking at, navigate to the next, mark a datapoint as a favorite, or clear your selection.</li>
<li>Select the active models and dataset, including multiple models to compare.</li>
</ul>
<div class="mdl-cell mdl-cell--12-col mdl-cell--6-col-tablet mdl-cell--4-col-phone">
Expand All @@ -123,7 +123,7 @@ <h3>Using Modules</h3>
<div class="info-box-title">Visualizations that scale</div>
<div class="info-box-text">Visualizations and results within modules can scale depending on if you're looking at one data point, multiple data points, one or multiple models. For instance, turning on the “compare datapoints” toggle allows you to compare a selected datapoint (known as the reference datapoint) to others by presenting individual results side-by-side within relevant modules.</div>
</div>
<p>Now that you’re familiar with LIT’s interface, take LIT for a spin in our <a href="../../demos">demos</a> or explore different <a href="../">case studies</a>.</p>
<p>Now that you are familiar with LIT’s interface, take LIT for a spin in our <a href="../../demos">demos</a> or explore different <a href="../">case studies</a>.</p>

</div>
<div class="mdl-cell--4-col hide-me">
Expand Down
8 changes: 7 additions & 1 deletion documentation/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,13 @@ passing in a dict of models and a dict of datasets, similar to the
parameter that specifies the height in pixels to render the LIT UI.

Then, in its own output cell, call the `render` method on the widget object to
render the LIT UI. The LIT UI can be rendered in multiple cells if desired.
render the LIT UI. The LIT UI can be rendered in multiple cells if desired. The
LIT UI can also be rendered in its own browser tab, outside of the notebook, by
passing the parameter `open_in_new_tab=True` to the `render` method. The
`render` method can optionally take in a configuration object to specify
certain options to render the LIT UI using, such as the selected layout,
current display tab, dataset, and models. See
[notebook.py](../lit_nlp/notebook.py) for details.

The widget has a `stop` method which shuts down the widget's server. This can be
important for freeing up resources if you plan to create multiple LIT widget
Expand Down
Loading