Skip to content

Commit 562cb1b

Browse files
authored
kepler.gl-jupyter: codespell (#3273)
1 parent f0d0ea9 commit 562cb1b

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

bindings/kepler.gl-jupyter/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ There is no need to use `jupyter labextension install` for `keplergl` > 0.3.0 wi
8888

8989
#### JupyterLab 1
9090

91-
For JupyterLab1, you need to install `keplergl-jupyter` labextension from NPM registery. There is no need to install `keplergl` python package.
91+
For JupyterLab1, you need to install `keplergl-jupyter` labextension from NPM registry. There is no need to install `keplergl` python package.
9292

9393
First, install `jupyterlab-manager` for JupyterLab1:
9494
```shell
@@ -106,7 +106,7 @@ jupyter labextension install keplergl-jupyter
106106

107107
#### JupyterLab 2
108108

109-
For JupyterLab2, you need to install `keplergl-jupyter` labextension from NPM registery. There is no need to install `keplergl` python package.
109+
For JupyterLab2, you need to install `keplergl-jupyter` labextension from NPM registry. There is no need to install `keplergl` python package.
110110

111111
First, install `jupyterlab-manager` for JupyterLab2:
112112
```shell
@@ -187,7 +187,7 @@ with input parameters:
187187
- data: a data dictionary {"name": data}, if not provided, will use current map data
188188
- config: map config dictionary, if not provided, will use current map config
189189
- read_only: if read_only is True, hide side panel to disable map customization
190-
- center_map: if center_map is True, the bound of the map will be updated acoording to the current map data
190+
- center_map: if center_map is True, the bound of the map will be updated according to the current map data
191191

192192
Please note that the map is not interactive due to the limitation of Google Colab. For example, when applying config to the map in Colab, the map won't be updated and one needs to call `show()` again to render a new map in a new cell.
193193

@@ -302,7 +302,7 @@ jupyter nbextension install --py --symlink --sys-prefix keplergl
302302
jupyter nbextension enable --py --sys-prefix keplergl
303303
```
304304

305-
NOTE: The above command `jupyter nbextension install -py --symlink --sys-prefix keplergl` is trying to create a symoblic link of the folder `bindings/kepler.gl-jupyter/keplergl/static` under the jupyter's folder `nbextensions`. Please check if there is already a folder "nbextensions/kepler-jupyter" existed, and you might need to remove it first.
305+
NOTE: The above command `jupyter nbextension install -py --symlink --sys-prefix keplergl` is trying to create a symbolic link of the folder `bindings/kepler.gl-jupyter/keplergl/static` under the jupyter's folder `nbextensions`. Please check if there is already a folder "nbextensions/kepler-jupyter" existed, and you might need to remove it first.
306306

307307
To find the location of `nbextensions` folder, you can use the following command:
308308
```shell

bindings/kepler.gl-jupyter/js/lib/keplergl-plugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import log from './log';
1818
//
1919
// when different from the base class.
2020

21-
// When serialiazing the entire widget state for embedding, only values that
21+
// When serializing the entire widget state for embedding, only values that
2222
// differ from the defaults will be specified.
2323
// Note: in JavaScript, class.extend does not inherently inherit static functions.
2424
export class KeplerGlModal extends widgets.DOMWidgetModel {

bindings/kepler.gl-jupyter/keplergl/keplergl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def _df_to_dict(df):
5353
# Convert all columns that aren't JSON serializable to strings
5454
for col in df_copy.columns:
5555
try:
56-
# just check the first item in the colum
56+
# just check the first item in the column
5757
json.dumps(df_copy[col].iloc[0] if len(df_copy) > 0 else None)
5858
except (TypeError, OverflowError):
5959
df_copy[col] = df_copy[col].astype(str)
@@ -237,7 +237,7 @@ def show(self, data=None, config=None, read_only=False, center_map=False):
237237
- data: a data dictionary {"name": data}, if not provided, will use current map data
238238
- config: map config dictionary, if not provided, will use current map config
239239
- read_only: if read_only is True, hide side panel to disable map customization
240-
- center_map: if center_map is True, the bound of the map will be updated acoording to the current map data
240+
- center_map: if center_map is True, the bound of the map will be updated according to the current map data
241241
242242
Example of use:
243243
# this will display map in Google Colab
@@ -275,7 +275,7 @@ def _repr_html_(self, data=None, config=None, read_only=False, center_map=False)
275275
- data: a data dictionary {"name": data}, if not provided, will use current map data
276276
- config: map config dictionary, if not provided, will use current map config
277277
- read_only: if read_only is True, hide side panel to disable map customization
278-
- center_map: if center_map is True, the bound of the map will be updated acoording to the current map data
278+
- center_map: if center_map is True, the bound of the map will be updated according to the current map data
279279
280280
Returns:
281281
- a html encoded string

0 commit comments

Comments
 (0)