Skip to content

Commit 0fe6892

Browse files
committed
Update to version 1.4.1
1 parent b42b61e commit 0fe6892

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ BertViz is an interactive tool for visualizing attention in [Transformer](https:
1616
[Tensor2Tensor visualization tool](https://github.com/tensorflow/tensor2tensor/tree/master/tensor2tensor/visualization)
1717
by [Llion Jones](https://medium.com/@llionj), providing multiple views that each offer a unique lens into the attention mechanism.
1818

19-
Get updates for this and related projects on [Twitter
20-
![Twitter logo](images/twitter.svg)](https://twitter.com/jesse_vig).
2119

2220
## 🚀 Quick Tour
2321

@@ -67,7 +65,7 @@ pip install ipywidgets
6765
To create a new Jupyter notebook, simply run:
6866

6967
```bash
70-
jupyter notebook
68+
jupyter lab
7169
```
7270

7371
Then click `New` and select `Python 3 (ipykernel)` if prompted.
@@ -111,7 +109,7 @@ You may also run any of the sample [notebooks](notebooks/) included with BertViz
111109
```bash
112110
git clone --depth 1 [email protected]:jessevig/bertviz.git
113111
cd bertviz/notebooks
114-
jupyter notebook
112+
jupyter lab
115113
```
116114
## 🕹 Interactive Tutorial
117115

bertviz/head_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import uuid
44

5-
from IPython.core.display import display, HTML, Javascript
5+
from IPython.display import display, HTML, Javascript
66

77
from .util import format_special_chars, format_attention, num_layers
88

bertviz/model_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import os
33
import uuid
44

5-
from IPython.core.display import display, HTML, Javascript
5+
from IPython.display import display, HTML, Javascript
66

77
from .util import format_special_chars, format_attention, num_layers, num_heads
88

bertviz/neuron_view.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
from collections import defaultdict
3232

3333
import torch
34-
from IPython.core.display import display, HTML, Javascript
34+
from IPython.display import display, HTML, Javascript
3535

3636

3737
def show(model, model_type, tokenizer, sentence_a, sentence_b=None, display_mode='dark', layer=None, head=None,

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
# This call to setup() does all the work
1111
setup(
1212
name="bertviz",
13-
version="1.4.0",
13+
version="1.4.1",
1414
description="Attention visualization tool for NLP Transformer models.",
1515
long_description=README,
1616
long_description_content_type="text/markdown",
@@ -19,5 +19,5 @@
1919
license="Apache 2.0",
2020
packages=["bertviz"],
2121
include_package_data=True,
22-
install_requires=["transformers>=2.0", "torch>=1.0", "tqdm", "boto3", "requests", "regex", "sentencepiece"],
22+
install_requires=["transformers>=2.0", "torch>=1.0", "tqdm", "boto3", "requests", "regex", "sentencepiece", "IPython>=7.14"],
2323
)

0 commit comments

Comments
 (0)