diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fbb9a10e..4a5410808 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # Changelog +# Version 3.40.1 (2023-03-10) + +## Fixed +* Fixed issue where calling create_batch() on exported data rows wasn't working + # Version 3.40.0 (2023-03-10) ## Added diff --git a/CONTRIB.md b/CONTRIB.md index 50ebba827..d59a0cc67 100644 --- a/CONTRIB.md +++ b/CONTRIB.md @@ -63,4 +63,20 @@ Each release should follow the following steps: 6. This will kick off a Github Actions workflow that will: - Build the library in the [standard way](https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives) - Upload the distribution archives in the [standard way](https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives) - with credentials for the `labelbox` PyPI user. \ No newline at end of file + - with credentials for the `labelbox` PyPI user. + + ## Running Jupyter Notebooks + + We have plenty of good samples in the _examples_ directory and using them for testing can help us increase our productivity. One way to use jupyter notebooks is to run the jupyter server locally (another way is to use a VSC plugin, not documented here). It works really fast. + + Make sure your notebook will use your source code: + 1. `ipython profile create` + 2. `ipython locate` - will show where the config file is. This is the config file used by the jupyter server, since it runs via ipython + 3. Open the file (this should be ipython_config.py and it is usually located in ~/.ipython/profile_default) and add the following line of code: + ``` + c.InteractiveShellApp.exec_lines = [ + 'import sys; sys.path.insert(0, "")' + ] + ``` + 4. Go to the root of your project and run `jupyter notebook` to start the server + diff --git a/docs/source/conf.py b/docs/source/conf.py index f8570c742..1ba1cbeff 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -21,7 +21,7 @@ copyright = '2021, Labelbox' author = 'Labelbox' -release = '3.40.0' +release = '3.40.1' # -- General configuration --------------------------------------------------- diff --git a/labelbox/__init__.py b/labelbox/__init__.py index a743764d8..472f311fd 100644 --- a/labelbox/__init__.py +++ b/labelbox/__init__.py @@ -1,5 +1,5 @@ name = "labelbox" -__version__ = "3.40.0" +__version__ = "3.40.1" from labelbox.client import Client from labelbox.schema.project import Project diff --git a/labelbox/schema/project.py b/labelbox/schema/project.py index 0858c9cf8..74992570e 100644 --- a/labelbox/schema/project.py +++ b/labelbox/schema/project.py @@ -814,7 +814,7 @@ def create_batch( "`data_rows` must be DataRow ids or DataRow objects") if data_rows is not None: - row_count = len(data_rows) + row_count = len(dr_ids) elif global_keys is not None: row_count = len(global_keys) else: