Skip to content

Commit a242745

Browse files
committed
Update English translation
1 parent 2c68ba8 commit a242745

39 files changed

+684
-691
lines changed

README.rst

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,12 @@ Follow us
101101

102102
* `GitHub <https://github.com/veit/pyviz-tutorial>`_
103103
* `Mastodon <https://mastodon.social/@PyViz>`_
104-
* `Mastodon <https://mastodon.social/@PyViz>`_
105104

106105
Pull-Requests
107106
-------------
108107

109-
Wenn ihr Vorschläge für Verbesserungen und Ergänzungen habt, empfehle ich euch,
110-
einen `Fork <https://github.com/veit/pyviz-tutorial/fork>`_ meines
111-
`GitHub-Repository <https://github.com/veit/pyviz-tutorial/>`_ zu erstellen
112-
und darin eure Änderungen vorzunehmen. Gerne dürft ihr auch einen *Pull Request*
113-
stellen. Sofern die darin enthaltenen Änderungen klein und atomar sind, schaue
114-
ich mir eure Vorschläge gerne an.
108+
If you have suggestions for improvements and additions, I recommend that you
109+
create a `fork <https://github.com/veit/pyviz-tutorial/fork>`_ of my `GitHub
110+
repository <https://github.com/veit/pyviz-tutorial/>`_ and make your changes
111+
there. You are also welcome to submit a pull request. As long as the changes are
112+
small and atomic, I will be happy to look at your suggestions.

docs/bokeh/annotations.ipynb

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"## Überblick\n",
14+
"## Overview\n",
1515
"\n",
16-
"Wir können visuelle Hinweise (Begrenzungslinien, schattierte Bereiche, Beschriftungen und Pfeile usw.) zu unseren Plots hinzufügen, um bestimmte Merkmale hervorzuheben. Bokeh bietet hierfür mehrere Annotationstypen. Um *Annotations* hinzuzufügen, erstellen wir normalerweise ein *Low-Level*-Objekt und fügen es mit `add_layout` unserem Diagramm hinzu. Schauen wir uns einige konkrete Beispiele an:"
16+
"We can add visual cues (boundary lines, shaded areas, labels and arrows, etc.) to our plots to emphasise certain features. Bokeh offers several annotation types for this purpose. To add annotations, we usually create a low-level object and add it to our diagram using `add_layout`. Let’s look at some concrete examples:"
1717
]
1818
},
1919
{
@@ -22,7 +22,7 @@
2222
"source": [
2323
"### Spans\n",
2424
"\n",
25-
"Spans sind vertikale oder horizontale Linien, für die die Spannweiten zwischen den Bemaßung angegeben werden kann, z.B.:"
25+
"Spans are vertical or horizontal lines for which the spans between the dimensions can be specified, for example:"
2626
]
2727
},
2828
{
@@ -428,18 +428,18 @@
428428
"cell_type": "markdown",
429429
"metadata": {},
430430
"source": [
431-
"### Box Annotations\n",
431+
"### Box annotations\n",
432432
"\n",
433-
"Soll ein Bereich eines Diagramms hervorgehoben werden, so können diese mit `BoxAnnotation`, den Koordinateneigenschaften \n",
433+
"If an area of a diagram is to be highlighted, this can be done with `BoxAnnotation`, the coordinate properties\n",
434434
"\n",
435435
"* `top`\n",
436436
"* `left`\n",
437437
"* `bottom`\n",
438438
"* `right`\n",
439439
"\n",
440-
"sowie Linien- und Fülleigenschaften das Erscheinungsbild konfiguriert werden.\n",
440+
"as well as line and fill properties to configure the appearance.\n",
441441
"\n",
442-
"Infinite Boxen können erstellt werden, indem die Koordinaten nicht angegeben werden. Wenn zum Beispiel `top` nicht angegeben ist, wird die Box immer bis zum oberen Rand des Plotbereichs angezeigt, unabhängig davon, ob ein Verschieben oder Zoomen stattfindet, z.B.:"
442+
"Infinite boxes can be created by not specifying the coordinates. For example, if `top` is not specified, the box is always displayed up to the top edge of the plot area, regardless of whether panning or zooming takes place, for example:"
443443
]
444444
},
445445
{
@@ -530,15 +530,15 @@
530530
"source": [
531531
"### Label\n",
532532
"\n",
533-
"Mit der Annotation `Label` können wir einzelne Beschriftungen einfach an Plots anbringen. Die anzuzeigende Position und der Text sind als `x`, `y` und `text` konfiguriert:\n",
533+
"With the `Label` annotation, we can easily attach individual labels to plots. The position to be displayed and the text are configured as `x`, `y` and `text`:\n",
534534
"\n",
535535
"``` Python\n",
536536
"Label(x=10, y=5, text=\"Some Label\")\n",
537537
"```\n",
538538
"\n",
539-
"Standardmäßig befinden sich die Einheiten im *data space*, aber `x_units` und `y_units` können auf `screen` gesetzt werden, um die Beschriftung relativ zur Zeichenfläche zu positionieren, und Labels können mit `x_offset` und `y_offset` positioniert werden.\n",
539+
"By default, the units are in the *data space*, but `x_units` and `y_units` can be set to `screen` to position the label relative to the drawing area, and labels can be positioned with `x_offset` and `y_offset`.\n",
540540
"\n",
541-
"`Label`-Objekte haben auch Standardtext-, Zeilen- (`border_line`) und Fülleigenschaften (`background_fill`). Die Linien- und Fülleigenschaften gelten für einen Begrenzungsrahmen um den Text:\n",
541+
"`Label` objects also have standard text, line (`border_line`) and fill (`background_fill`) properties. The line and fill properties apply to a bounding box around the text:\n",
542542
"\n",
543543
"``` Python\n",
544544
"Label(x=10, y=5, text=\"Some Label\", text_font_size=\"12pt\", \n",
@@ -618,7 +618,7 @@
618618
"source": [
619619
"### LabelSet\n",
620620
"\n",
621-
"Mit der Annotation `LabelSet` könnt ihr viele Beschriftungen gleichzeitig erstellen, z.B. wenn ihr einen ganzen Satz von Scatter Markers beschriften möchtet. Sie ähneln `Label`, können aber auch eine `ColumnDataSource` als `source` -Eigenschaft nutzen, wobei sich `x` und `y` auf Spalten in der Datenquelle beziehen."
621+
"With the `LabelSet` annotation, you can create many labels at the same time, for example if you want to label a whole set of scatter markers. They are similar to `Label`, but can also use a `ColumnDataSource` as a `source` property, where `x` and `y` refer to columns in the data source."
622622
]
623623
},
624624
{
@@ -714,28 +714,28 @@
714714
"source": [
715715
"### Arrows\n",
716716
"\n",
717-
"Mit der Annotation `Arrow` könnt ihr auf verschiedene Elemente in eurer Zeichnung *zeigen+. Dies kann besonders bei Beschriftungen hilfreich sein.\n",
717+
"You can use the `Arrow` annotation to point to various elements in your drawing. This can be particularly helpful for labelling.\n",
718718
"\n",
719-
"So könnt ihr beispielsweise einen Pfeil erstellen, der von `(0,0)` bis `(1,1)` zeigt:\n",
719+
"For example, you can create an arrow that points from `(0,0)` to `(1,1)`:\n",
720720
"\n",
721721
"``` Python\n",
722722
"p.add_layout(Arrow(x_start=0, y_start=0, x_end=1, y_end=0))\n",
723723
"```\n",
724724
"\n",
725-
"Dieser Pfeil hat die Standardspitze [OpenHead](https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.OpenHead). Andere Arten von Pfeilspitzen sind [NormalHead](https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.NormalHead) und [VeeHead](https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.VeeHead). Der Typ des Pfeilkopfs kann durch die Eigenschaften `start` and `end` von `Arrow`-Objekten konfiguriert werden:\n",
725+
"This arrow has the standard [OpenHead](https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.OpenHead) tip. Other types of arrowheads are [NormalHead](https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.NormalHead) and [VeeHead](https://docs.bokeh.org/en/latest/docs/reference/models/annotations.html#bokeh.models.VeeHead). The type of arrowhead can be configured using the `start` and `end` properties of `Arrow` objects:\n",
726726
"\n",
727727
"``` Python\n",
728728
"p.add_layout(Arrow(start=OpenHead(), end=VeeHead(), \n",
729729
" x_start=0, y_start=0, x_end=1, y_end=0))\n",
730730
"```\n",
731731
"\n",
732-
"Dies erzeugt einen Doppelpfeil mit `OpenHead` und `VeeHead`. Pfeilspitzen haben darüberhinaus den Standardsatz von Linien- und Fülleigenschaften, um deren Aussehen zu konfigurieren, z.B.:\n",
732+
"This creates a double arrow with `OpenHead` and `VeeHead`. Arrowheads also have the standard set of line and fill properties to configure their appearance, for example\n",
733733
"\n",
734734
"``` Python\n",
735735
"OpenHead(line_color=\"firebrick\", line_width=4)\n",
736736
"```\n",
737737
"\n",
738-
"Der Code und das Diagramm unten zeigen mehrere dieser Konfigurationen zusammen."
738+
"The code and diagram below show several of these configurations together."
739739
]
740740
},
741741
{
@@ -851,24 +851,24 @@
851851
"cell_type": "markdown",
852852
"metadata": {},
853853
"source": [
854-
"### Legenden\n",
854+
"### Legends\n",
855855
"\n",
856-
"Wenn Diagramme mehrere Glyphen enthalten, ist es wünschenswert, eine Legende hinzuzufügen, um Betrachtern die Interpretation zu erleichtern. Bokeh kann Legenden anhand der hinzugefügten Glyphen leicht generieren."
856+
"When diagrams contain multiple glyphs, it is desirable to add a legend to help viewers interpret them. Bokeh can easily generate legends based on the added glyphs."
857857
]
858858
},
859859
{
860860
"cell_type": "markdown",
861861
"metadata": {},
862862
"source": [
863-
"#### Einfache Legenden\n",
863+
"#### Simple legends\n",
864864
"\n",
865-
"Im einfachsten Fall könnt ihr einen String als `legend` an eine Glyph-Funktion übergeben:\n",
865+
"In the simplest case, you can pass a string as a `legend` to a glyph function:\n",
866866
"\n",
867867
"``` Python\n",
868868
"p.circle(x, y, legend=\"sin(x)\")\n",
869-
"``` \n",
869+
"```\n",
870870
"\n",
871-
"In diesem Fall erstellt Bokeh automatisch eine Legende, die eine Darstellung dieser Glyphe zeigt."
871+
"In this case, Bokeh automatically creates a legend that shows a representation of this glyph."
872872
]
873873
},
874874
{
@@ -950,9 +950,9 @@
950950
"cell_type": "markdown",
951951
"metadata": {},
952952
"source": [
953-
"#### Zusammengesetzte Legenden\n",
953+
"#### Composite legends\n",
954954
"\n",
955-
"Im obigen Beispiel haben wir für jede Glyphenmethode ein anderes Etikett bereitgestellt. Manchmal werden zwei (oder mehr) verschiedene Glyphen mit einer einzigen Datenquelle verwendet. In diesem Fall können zusammengesetzte Legenden erstellt werden. Wenn ihr z.B. eine Sin-Kurve mit einer Linie und einer Markierung plottet, könnt ihr ihnen dieselbe Bezeichnung geben um sie dazu zu bringen, gemeinsam in der Legende zu erscheinen:\n",
955+
"In the example above, we have provided a different label for each glyph method. Sometimes two (or more) different glyphs are used with a single data source. In this case, composite legends can be created. For example, if you plot a sin curve with a line and a marker, you can give them the same label to make them appear together in the legend:\n",
956956
"\n",
957957
"``` Python\n",
958958
"p.circle(x, y, legend=\"sin(x)\")\n",
@@ -964,17 +964,17 @@
964964
"cell_type": "markdown",
965965
"metadata": {},
966966
"source": [
967-
"### Farbbalken\n",
967+
"### Colour bars\n",
968968
"\n",
969-
"Farbbalken sind besonders nützlich, wenn wir die Farbe einer Glyphe entsprechend der Farbzuordnung variiert. Bokeh-Farbbalken werden mit einer Farbzuordnung konfiguriert und mit der `add_layout'-Methode zu Plots hinzugefügt:\n",
969+
"Colour bars are particularly useful when we vary the colour of a glyph according to the colour mapping. Bokeh colour bars are configured with a colour mapping and added to plots using the `add_layout` method:\n",
970970
"\n",
971971
"``` Python\n",
972972
"color_mapper = LinearColorMapper(palette=\"Viridis256\", low=data_low, high=data_high)\n",
973973
"color_bar = ColorBar(color_mapper=color_mapper, location=(0,0))\n",
974974
"p.add_layout(color_bar, 'right')\n",
975975
"```\n",
976976
"\n",
977-
"Das folgende Beispiel zeigt ein vollständiges Beispiel, in dem auch die Farbzuordnung zur Umwandlung der Glyphenfarbe verwendet wird."
977+
"In the following example, the colour mapping is also used to convert the glyph colour."
978978
]
979979
},
980980
{

docs/bokeh/bokeh-server.ipynb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
"source": [
77
"# Bokeh-Server\n",
88
"\n",
9-
"Die Architektur von Bokeh ist so, dass übergeordnete *Modellobjekte*, also Darstellungen wie Plots, Bereiche, Achsen, Glyphen usw.) in Python erstellt und dann in ein JSON-Format konvertiert werden, das von der Client-Bibliothek `BokehJS` verwendet wird. Mit Hilfe des Bokeh-Servers können die *Modellobjekte* in Python und im Browser miteinander synchronisiert werden, wodurch mächtige Funktionen geschaffen werden:\n",
9+
"The architecture of Bokeh is such that higher-level model objects (that is, representations such as plots, areas, axes, glyphs, etc.) are created in Python and then converted into a JSON format that is used by the `BokehJS` client library. With the help of the Bokeh server, the model objects in Python and in the browser can be synchronised with each other, creating powerful functions:\n",
1010
"\n",
11-
"* Browser-Events führen zu serverseitigen Python-Berechnungen oder -Abfragen\n",
12-
"* Automatische Push-Aktualisierung des Browser-UI (z.B. Widgets oder Plots)\n",
13-
"* Periodische, Timeout- und asynchronen Callbacks für Streaming-Updates\n",
11+
"* Browser events lead to server-side Python calculations or queries\n",
12+
"* Automatic push update of the browser UI (for example, widgets or plots)\n",
13+
"* Periodic, timeout and asynchronous callbacks for streaming updates\n",
1414
"\n",
15-
"Diese Funktion zur Synchronisierung zwischen serverseitigem Python und dem Browser ist der Hauptzweck des Bokeh-Servers.\n",
15+
"This function for synchronisation between server-side Python and the browser is the main purpose of the Bokeh server.\n",
1616
"\n",
17-
"Es ist auch möglich, Bokeh-Anwendungen zu definieren, indem ein Standard-Python-Skript erstellt wird. In diesem Fall ist es nicht erforderlich, eine Funktion wie `modify_doc` zu erstellen. Normalerweise erstellt das Skript einfach alle Bokeh-Kontingente und fügt es mit einer Zeile dem Dokument hinzu:\n",
17+
"It is also possible to define Bokeh applications by creating a standard Python script. In this case, it is not necessary to create a function like `modify_doc`. Normally, the script simply creates all bokeh quotas and adds it to the document with one line:\n",
1818
"\n",
1919
"``` Python\n",
2020
"curdoc().add_root(layout)\n",
2121
"```\n",
2222
"\n",
23-
"Um das Beispiel unten auszuprobieren, kopiert den Code in eine Datei `hello.py` und führt dann Folgendes aus:\n",
23+
"To try out the example below, copy the code into a file `hello.py` and then execute the following:\n",
2424
"\n",
2525
"``` bash\n",
2626
"$ pipenv run python -m bokeh serve --show hello.py\n",

0 commit comments

Comments
 (0)