google / google/neuroglancer

Jupyter Notebook Demo outdated and causes errors

Open
#609 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
1.5k
Forks
389
Avg merge
3d 21h
Merged PRs (30d)
3

Description

(Amazing project!)

I was trying to work through https://github.com/google/neuroglancer/blob/master/python/examples/jupyter-notebook-demo.ipynb, and discovered that some of the code no longer works. In particular,

```python
with viewer.txn() as s:
s.layers['segmentation'].segments.update([1752, 88847])
s.layers['segmentation'].visible = True
```

causes the following error:

```
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
Cell In[13], line 2
1 with viewer.txn() as s:
----> 2 s.layers['segmentation'].segments.update([1752, 88847])
3 s.layers['segmentation'].visible = True

AttributeError: 'VisibleSegments' object has no attribute 'update'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.