You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jupyter lab packages (if applicable): $ jupyter labextension list
@jupyter-widgets/jupyterlab-manager
@jupyter-widgets/jupyterlab-manager v0.35.0 enabled OK
qgrid
qgrid v1.0.5 enabled OK
Description of Issue
What did you expect to happen?
Being able to select a categorical data containing arbitrary text, including quotes. In particular, I was expecting to set a category item among `{"ConL1", "ConL2", "ConL3", "ConLS", "ConLS'"}.
What happened instead?
When I encountered this bug for the first time, I got an error popup, and the following traceback in the server log:
[IPKernelApp] ERROR|ErroroccurredwhileattemptingtoedittheDataFrame. Checkthenotebookserverlogsformoreinformation.
Traceback (mostrecentcalllast):
File"/home/althonos/.local/lib/python3.6/site-packages/qgrid/grid.py", line1224, in_handle_qgrid_msg_helperself._df.loc[location] =val_to_setFile"/usr/lib/python3.6/site-packages/pandas/core/indexing.py", line189, in__setitem__self._setitem_with_indexer(indexer, value)
File"/usr/lib/python3.6/site-packages/pandas/core/indexing.py", line615, in_setitem_with_indexersetter(item, value)
File"/usr/lib/python3.6/site-packages/pandas/core/indexing.py", line539, insetters._data=s._data.setitem(indexer=pi, value=v)
File"/usr/lib/python3.6/site-packages/pandas/core/internals.py", line3693, insetitemreturnself.apply('setitem', **kwargs)
File"/usr/lib/python3.6/site-packages/pandas/core/internals.py", line3581, inapplyapplied=getattr(b, f)(**kwargs)
File"/usr/lib/python3.6/site-packages/pandas/core/internals.py", line1934, insetitemself.values[indexer] =valueFile"/usr/lib/python3.6/site-packages/pandas/core/arrays/categorical.py", line1982, in__setitem__raiseValueError("Cannot setitem on a Categorical with a new "ValueError: CannotsetitemonaCategoricalwithanewcategory, setthecategoriesfirst
When trying to come with a reproducible test case, I could only reach a point where the update would simply not happen, but no error would be raised.
Environment
pip
$ jupyter labextension list
Description of Issue
Being able to select a categorical data containing arbitrary text, including quotes. In particular, I was expecting to set a category item among `{"ConL1", "ConL2", "ConL3", "ConLS", "ConLS'"}.
Reproduction Steps
test
column to'Hello'
: nothing is updated (the cell stays empty).The text was updated successfully, but these errors were encountered: