Skip to main content

No project description provided

Project description

PyPI License Open In Colab

Skelescope

A simple interactive 3D skeleton viewer for Jupyter

Development installation

Create a virtual environment and install skelescope's development dependencies:

poetry install
poetry shell

You then need to install the JavaScript dependencies and run the development server.

npm install
npm run dev

All is set to open example.ipynb in JupyterLab, VS Code, or your favorite editor to start developing. Any change made in the js folder will be directly reflected in the notebook.

Deploy to PyPi

poetry build -vvv
poetry publish

Proposed Interface (Jakob, edited pha)

viewer = NeuriteViewer(
  width = "500", # non-required value. defaults to filling the widget
  height = "300"
)

# add neuron to viewer instance
viewer.loadNeuron(
  swc, # swc in JSON format
  synapses, # JSON format (position, [pre_post_annotation, graph_node_id])
  tree_topology = None
  cache_folder = None 
  name = None, # not required, defaults to "<root_id>"
  neuronColor, # not required, defaults to random color
  synapseColor, # not required
  recenter_camera=True # not required
)

# synapses are attached to the neuron as neuron.connectors.

# remove neuron from instance
viewer.deleteNeuron(
  name # can be manually assigned name or <root_id>
)

viewer.getNeuronSelection(
  names # list of all neuron names to get selection from, not required parameter
)

viewer.getSegmentSelection(
  names # list of all neuron names to get selection from, not required parameter
)

viewer.getSynapseSelection(
  names # # list of all neuron names to get synapse selection from, not required parameter
)

viewer.show() # renders the widget

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

skelescope-0.0.7.tar.gz (7.4 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

skelescope-0.0.7-py3-none-any.whl (7.5 MB view details)

Uploaded Python 3

File details

Details for the file skelescope-0.0.7.tar.gz.

File metadata

  • Download URL: skelescope-0.0.7.tar.gz
  • Upload date:
  • Size: 7.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Windows/11

File hashes

Hashes for skelescope-0.0.7.tar.gz
Algorithm Hash digest
SHA256 c8c799d6c0358bbee76b21ef37da6b7920e2bda4e645f8e8ced06c9a5e5edf09
MD5 dd35927bed6e7f735db8fc322cff5e0a
BLAKE2b-256 536f0a7aafb1e70d1f2a8aff7319310723a6013e089f3fb8594af52b1f082cf8

See more details on using hashes here.

File details

Details for the file skelescope-0.0.7-py3-none-any.whl.

File metadata

  • Download URL: skelescope-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 7.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Windows/11

File hashes

Hashes for skelescope-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 424e44b11a29f002bf821880c0f76df3e3f6e825a52392ba5177ed7fb8d201fa
MD5 7ca2f5b37fd6b147872349a6f97e4289
BLAKE2b-256 bea90bb41d8e640eae339369c392c29ecd45618b7edd5025fc407590446bdbf7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page