Skip to content

evangelistalab/fortecubeview

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fortecubeview

A simple cube file viewer based on pythreejs.

fortecubeview

Installation

Using pip:

pip install fortecubeview

Dependencies

forte4cubeview requires pythreejs and scikit-image.

To install pythreejs via pip:

pip install pythreejs

To install pythreejs via conda:

conda install -c conda-forge pythreejs
conda install nodejs -c conda-forge --repodata-fn=repodata.json

And then install the extension for jupyter notebooks

jupyter nbextension install --py --symlink --sys-prefix pythreejs
jupyter nbextension enable --py --sys-prefix pythreejs

Or for jupyter lab:

jupyter labextension install @jupyter-widgets/jupyterlab-manager 
jupyter labextension install jupyter-threejs

Getting started

Check out the example files in the fortecubeview/examples folder. From jupyter, the following will load and display all the cube files contained in the currrent working directory

    import fortecubeview
    fortecubeview.plot()