Skip to content

Commit ed01489

Browse files
Merge pull request #985 from Labelbox/develop
Release 3.40.1
2 parents 76c8fbf + 8ffa9da commit ed01489

File tree

5 files changed

+25
-4
lines changed

5 files changed

+25
-4
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
# Version 3.40.1 (2023-03-10)
4+
5+
## Fixed
6+
* Fixed issue where calling create_batch() on exported data rows wasn't working
7+
38
# Version 3.40.0 (2023-03-10)
49

510
## Added

CONTRIB.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,20 @@ Each release should follow the following steps:
6363
6. This will kick off a Github Actions workflow that will:
6464
- Build the library in the [standard way](https://packaging.python.org/tutorials/packaging-projects/#generating-distribution-archives)
6565
- Upload the distribution archives in the [standard way](https://packaging.python.org/tutorials/packaging-projects/#uploading-the-distribution-archives)
66-
with credentials for the `labelbox` PyPI user.
66+
- with credentials for the `labelbox` PyPI user.
67+
68+
## Running Jupyter Notebooks
69+
70+
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.
71+
72+
Make sure your notebook will use your source code:
73+
1. `ipython profile create`
74+
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
75+
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:
76+
```
77+
c.InteractiveShellApp.exec_lines = [
78+
'import sys; sys.path.insert(0, "<labelbox-python root folder>")'
79+
]
80+
```
81+
4. Go to the root of your project and run `jupyter notebook` to start the server
82+

docs/source/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
copyright = '2021, Labelbox'
2222
author = 'Labelbox'
2323

24-
release = '3.40.0'
24+
release = '3.40.1'
2525

2626
# -- General configuration ---------------------------------------------------
2727

labelbox/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "labelbox"
2-
__version__ = "3.40.0"
2+
__version__ = "3.40.1"
33

44
from labelbox.client import Client
55
from labelbox.schema.project import Project

labelbox/schema/project.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -814,7 +814,7 @@ def create_batch(
814814
"`data_rows` must be DataRow ids or DataRow objects")
815815

816816
if data_rows is not None:
817-
row_count = len(data_rows)
817+
row_count = len(dr_ids)
818818
elif global_keys is not None:
819819
row_count = len(global_keys)
820820
else:

0 commit comments

Comments
 (0)