Skip to content

Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.

kepler.gl-jupyter: codespell (#3273)

Kurt Schwehr562cb1ba8c24
diff --git a/bindings/kepler.gl-jupyter/README.md b/bindings/kepler.gl-jupyter/README.md
index 417ca56a8..01b333980 100644
--- a/bindings/kepler.gl-jupyter/README.md
+++ b/bindings/kepler.gl-jupyter/README.md
@@ -88,7 +88,7 @@ There is no need to use `jupyter labextension install` for `keplergl` > 0.3.0 wi
#### JupyterLab 1
-For JupyterLab1, you need to install `keplergl-jupyter` labextension from NPM registery. There is no need to install `keplergl` python package.
+For JupyterLab1, you need to install `keplergl-jupyter` labextension from NPM registry. There is no need to install `keplergl` python package.
First, install `jupyterlab-manager` for JupyterLab1:
```shell
@@ -106,7 +106,7 @@ jupyter labextension install keplergl-jupyter
#### JupyterLab 2
-For JupyterLab2, you need to install `keplergl-jupyter` labextension from NPM registery. There is no need to install `keplergl` python package.
+For JupyterLab2, you need to install `keplergl-jupyter` labextension from NPM registry. There is no need to install `keplergl` python package.
First, install `jupyterlab-manager` for JupyterLab2:
```shell
@@ -187,7 +187,7 @@ with input parameters:
- data: a data dictionary {"name": data}, if not provided, will use current map data
- config: map config dictionary, if not provided, will use current map config
- read_only: if read_only is True, hide side panel to disable map customization
-- center_map: if center_map is True, the bound of the map will be updated acoording to the current map data
+- center_map: if center_map is True, the bound of the map will be updated according to the current map data
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.
@@ -302,7 +302,7 @@ jupyter nbextension install --py --symlink --sys-prefix keplergl
jupyter nbextension enable --py --sys-prefix keplergl
```
-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.
+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.
To find the location of `nbextensions` folder, you can use the following command:
```shell
diff --git a/bindings/kepler.gl-jupyter/js/lib/keplergl-plugin.js b/bindings/kepler.gl-jupyter/js/lib/keplergl-plugin.js
index bf6edafee..dc9951fce 100644
--- a/bindings/kepler.gl-jupyter/js/lib/keplergl-plugin.js
+++ b/bindings/kepler.gl-jupyter/js/lib/keplergl-plugin.js
@@ -18,7 +18,7 @@ import log from './log';
//
// when different from the base class.
-// When serialiazing the entire widget state for embedding, only values that
+// When serializing the entire widget state for embedding, only values that
// differ from the defaults will be specified.
// Note: in JavaScript, class.extend does not inherently inherit static functions.
export class KeplerGlModal extends widgets.DOMWidgetModel {
diff --git a/bindings/kepler.gl-jupyter/keplergl/keplergl.py b/bindings/kepler.gl-jupyter/keplergl/keplergl.py
index 9e909a835..6ea57fe5a 100644
--- a/bindings/kepler.gl-jupyter/keplergl/keplergl.py
+++ b/bindings/kepler.gl-jupyter/keplergl/keplergl.py
@@ -53,7 +53,7 @@ def _df_to_dict(df):
# Convert all columns that aren't JSON serializable to strings
for col in df_copy.columns:
try:
- # just check the first item in the colum
+ # just check the first item in the column
json.dumps(df_copy[col].iloc[0] if len(df_copy) > 0 else None)
except (TypeError, OverflowError):
df_copy[col] = df_copy[col].astype(str)
@@ -237,7 +237,7 @@ class KeplerGl(widgets.DOMWidget):
- data: a data dictionary {"name": data}, if not provided, will use current map data
- config: map config dictionary, if not provided, will use current map config
- read_only: if read_only is True, hide side panel to disable map customization
- - center_map: if center_map is True, the bound of the map will be updated acoording to the current map data
+ - center_map: if center_map is True, the bound of the map will be updated according to the current map data
Example of use:
# this will display map in Google Colab
@@ -275,7 +275,7 @@ class KeplerGl(widgets.DOMWidget):
- data: a data dictionary {"name": data}, if not provided, will use current map data
- config: map config dictionary, if not provided, will use current map config
- read_only: if read_only is True, hide side panel to disable map customization
- - center_map: if center_map is True, the bound of the map will be updated acoording to the current map data
+ - center_map: if center_map is True, the bound of the map will be updated according to the current map data
Returns:
- a html encoded string