GithubHelp home page GithubHelp logo

brainsprite / brainsprite.github.io Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 8.79 MB

website and documentation for brainsprite

License: MIT License

HTML 97.05% Python 0.12% Jupyter Notebook 0.22% CSS 0.49% JavaScript 2.13%

brainsprite.github.io's Introduction

Brainsprite

Brainsprite is a library to incorporate interactive brain viewers in html web documents. Brainsprite is composed of two components: a javascript rendering engine, and a python API used to populate an html template with all necessary data and meta data. The documentation of the project can be found on https://brainsprite.github.io

CircleCI codecov Codacy Badge License: MIT collaborate brainhack

brainsprite.github.io's People

Contributors

brainsprite-bot avatar pbellec avatar

Watchers

 avatar  avatar

brainsprite.github.io's Issues

Error when trying the tutorials

I tried the tutorials both as a Jupyter notebook and as a python script. When I tried executing the command

from brainsprite import viewer_substitute

bsprite = viewer_substitute(threshold=3, opacity=0.5, title="plot_stat_map",
cut_coords=[36, -27, 66])
bsprite.fit(stat_img, bg_img=anat)

I get the following error:


ImportError Traceback (most recent call last)
/var/folders/ck/szdm_4996pnb0qzqsb6pk4_r0000gp/T/ipykernel_67980/2301324209.py in
----> 1 from brainsprite import viewer_substitute
2
3 bsprite = viewer_substitute(threshold=3, opacity=0.5, title="plot_stat_map",
4 cut_coords=[36, -27, 66])
5 bsprite.fit(stat_img, bg_img=anat)

~/opt/anaconda3/lib/python3.9/site-packages/brainsprite/init.py in
1 """Brainsprite python API."""
----> 2 from .brainsprite import viewer_substitute
3
4 all = ['viewer_substitute']

~/opt/anaconda3/lib/python3.9/site-packages/brainsprite/brainsprite.py in
18 from nilearn.plotting.find_cuts import find_xyz_cut_coords
19 from nilearn.plotting.img_plotting import _load_anat
---> 20 from nilearn.reporting import HTMLDocument
21 from nilearn._utils.niimg_conversions import check_niimg_3d
22 from nilearn._utils.param_validation import check_threshold

ImportError: cannot import name 'HTMLDocument' from 'nilearn.reporting' (/Users/frkrohn/opt/anaconda3/lib/python3.9/site-packages/nilearn/reporting/init.py)

I am using Python 3.9.6 and a Jupyter in a conda environment

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.