Git Product home page Git Product logo

hyperspy_gui_ipywidgets's Introduction

Azure pipelines status Tests status Documentation status Codecov coverage pre-commit.ci status

Python Version PyPI Version Anaconda Version License: GPL v3

gitter DOI

HyperSpy is an open source Python library for the interactive analysis of multidimensional datasets that can be described as multidimensional arrays of a given signal (for example, a 2D array of spectra, also known as a spectrum image).

HyperSpy makes it straightforward to apply analytical procedures that operate on an individual signal to multidimensional arrays, as well as providing easy access to analytical tools that exploit the multidimensionality of the dataset.

Its modular structure makes it easy to add features to analyze many different types of signals. Visit the HyperSpy Website to learn more about HyperSpy and its extension packages and for instructions on how to install the package and get started in analysing your data.

HyperSpy is released under the GPL v3 license.

Since version 0.8.4, HyperSpy only supports Python 3. If you need to install HyperSpy in Python 2.7, please install version 0.8.3.

Contributing

Everyone is welcome to contribute. Please read our contributing guidelines and get started!

hyperspy_gui_ipywidgets's People

Contributors

dependabot[bot] avatar ericpre avatar francisco-dlp avatar jat255 avatar jlaehne avatar magnunor avatar ptim0626 avatar thomasaarholt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hyperspy_gui_ipywidgets's Issues

Missing Packages in Conda Installation

When Hyperspy and the GUI widgets are installed via pip:

pip install hyperspy[gui-jupyter]

the ipympl package is included in the installation. However, when installing with Conda:

conda install -c conda-forge hyperspy-base hyperspy-gui-ipywidgets

ipympl is missing. Since the latter is required for proper plotting of the widgets in Jupyter, presumably it should be included.

Make each axis in axes_manager.gui() its own Accordion

Currently the axes_manager.gui() consists of ipywidgets.HBox([nav_accordion, sig_accordion]). As an example, nav_accordion is one accordion wrapped around a list of the axes widgets.

Each accordion can only have one open tab at a time. This means that one can't quickly hop between navigating in x and then in y.

It would be better to make each axis an accordion, then put the navigation ones and the signal ones in separate ipywidgets.Boxes, and then HBox the two boxes.

[openSUSE Linux] Failed pytest: E KeyError: PosixPath and E ImportError: cannot import name 'register_widget'

Hello,

I'm packaging python-hyperspy_gui_ipywidgets on linux openSUSE Tumbleweed.
During testing with pytest on x86 arch, I encounter an error.
I don't have a clue about this issue.

Hyperspy 1.6.0
hyperspy_gui_ipywidgets 1.1.1

Full error log here: https://build.opensuse.org/package/live_build_log/home:andythe_great/python-hyperspy_gui_ipywidgets/openSUSE_Tumbleweed/x86_64

[   88s] ============================= test session starts ==============================
[   88s] platform linux -- Python 3.8.4, pytest-5.4.3, py-1.9.0, pluggy-0.13.1 -- /usr/bin/python3
[   88s] cachedir: .pytest_cache
[   88s] Matplotlib: 3.3.0
[   88s] Freetype: 2.6.1
[   88s] rootdir: /home/abuild/rpmbuild/BUILD/hyperspy_gui_ipywidgets-1.1.1
[   88s] plugins: mpl-0.11
[   93s] collecting ... collected 0 items / 1 error
[   94s] 
[   94s] ==================================== ERRORS ====================================
[   94s] ________________________ ERROR collecting test session _________________________
[   94s] /usr/lib/python3.8/site-packages/_pytest/config/__init__.py:495: in _importconftest
[   94s]     return self._conftestpath2mod[key]
[   94s] E   KeyError: PosixPath('/home/abuild/rpmbuild/BUILD/hyperspy_gui_ipywidgets-1.1.1/hyperspy_gui_ipywidgets/conftest.py')
[   94s] 
[   94s] During handling of the above exception, another exception occurred:
[   94s] /usr/lib/python3.8/site-packages/py/_path/local.py:704: in pyimport
[   94s]     __import__(modname)
[   94s] hyperspy_gui_ipywidgets/__init__.py:5: in <module>
[   94s]     import hyperspy_gui_ipywidgets.axes
[   94s] hyperspy_gui_ipywidgets/axes.py:3: in <module>
[   94s]     from hyperspy_gui_ipywidgets.utils import (
[   94s] hyperspy_gui_ipywidgets/utils.py:7: in <module>
[   94s]     from hyperspy.ui_registry import register_widget
[   94s] E   ImportError: cannot import name 'register_widget' from 'hyperspy.ui_registry' (/usr/lib64/python3.8/site-packages/hyperspy/ui_registry.py)

Ipywidgets won't load on New Install

I tried to make a new hyperspy install from the bundle on a Windows computer and got stuck with the dreaded "widget is loading..." I will look more into the css and see what is wrong. Likely it is a problem with the installed version of nodejs if I remember correctly but will update this with any more information.

@ericpre any suggestions?

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.