google / google/neuroglancer

How to change `bind_address` in remote Jupyter notebook?

Open
#766 3 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

I'm trying to run neuroglancer on a remote PC within a Jupyter notebook within VSCODE (since that PC has credentials for the data I want to view).

Following the [connectomics readthedocs](https://connectomics.readthedocs.io/en/latest/external/neuroglancer.html#start-a-local-neuroglancer-server), I thought this might work:

```python
import neuroglancer

ip = jupyter_ip # ip of PC hosting this notebook, NOT 127.0.0.1
port = 1337
neuroglancer.set_server_bind_address(bind_address=ip, bind_port=port)

viewer = neuroglancer.Viewer()
print(viewer)
```

But it doesn't, it just prints:
`http://127.0.0.1:39881/v/SOME_HEXSTRING/`

Can anyone provide advice on getting neuroglancer to work in this setup?

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.