Git Product home page Git Product logo

ipywe's Introduction

scikit-beam

Build Status codecov.io Join the chat at https://gitter.im/scikit-beam/scikit-beam

Documentation

Examples

scikit-beam-examples repository

Quick start

install with conda

conda install scikit-beam -c nsls2forge

install development version with setuptools

git clone [email protected]:scikit-beam/scikit-beam.git
cd scikit-beam
python setup.py install

set up for development

git clone [email protected]:scikit-beam/scikit-beam.git
cd scikit-beam
python setup.py develop
pip install pytest coverage setuptools

make sure all the tests pass!

python run_tests.py

and you can check the code coverage with

coverage run run_tests.py
coverage report -m

ipywe's People

Contributors

ckendrick avatar ilumsden avatar jeanbilheux avatar mrakitin avatar yxqd avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ipywe's Issues

binder broken

some dependencies are missing. need to update environment.yaml

Double click inside text field

would it be possible to double click a folder to enter this one, instead of clicking at the bottom of the panel the "Enter Folder". I noticed a few users who all add the same reflex of double clicking to try to enter the folder.

Version 0.1.2a2

See conda-forge/staged-recipes#5319. Trying to get conda recipe accepted into conda-forge

Changes from 0.1.2a1:

  • Added LICENSE

Things to do

  • Update version numbers in _version.py/meta.yaml/package.json
  • git add and git commit
  • tag: git tag -a X.X.X -m 'comment'
  • push: git push ; git push --tags
  • build and upload
    conda build conda-recipes
    anaconda login
    anaconda upload /path/to/ipywe-...tar.bz2
    

0.1.1a4

  • Update version numbers (set release version, remove 'dev') in
    • _version.py
    • meta.yaml
    • package.json
  • git add and git commit
  • tag
git tag -a X.X.X -m 'comment'
  • push
git push
git push --tags
  • build and upload
conda build conda-recipes
anaconda login
anaconda upload /path/to/ipywe-...tar.bz2

Improve versioning

versioning is now scattered. need to be centralized for easier maintenance

Requirements

Should we add a requirement.txt file to this project in order to know what are all necessary libraries?

Version of Ipywe not Updating in Conda

I'm not sure if this is an issue or not, but I'll put it here just in case.

Currently, when you install ipywe through conda, it installs version 0.1.0. However, in the _version.py and package.json files, the version is 0.1.1a1. Also, the current conda installation does not contain several changes made to the ImageSlider and ImageDisplay widgets.

Make 0.1.1a7 release

Tickets closed:

Things to do

  • Update version numbers in
    • _version.py
    • meta.yaml
    • package.json
  • git add and git commit
  • tag
git tag -a X.X.X -m 'comment'
  • push
git push
git push --tags
  • build and upload
conda build conda-recipes
anaconda login
anaconda upload /path/to/ipywe-...tar.bz2

add image slider

A widget that allows viewing an image series with cursor coordinates and value outputs and contrast adjustment.

Python dependencies for widgets

Widgets may have different dependencies. Do we need to add all dependencies to conda meta.yaml and setup.py? Some users of this package may only need one widget that has minimal dependencies, while some users may need widgets that requires installation of a lot of dependencies. Should we delegate to each widget to declare its dependency. Is the "extras_require" for setup.py good for this?

Improving Width Graphing in ImgDataGraph

  1. Need to compare the current algorithm for the diagonal calculation with the vector-based algorithm.
  2. Look into the matplotlib.pyplot.hist() and numpy.histogram() functions.

Fix bugs/add features in new version of ImageSlider

Current bugs and features to add:

  1. Make zooming apply to all images at the same time
  2. Fix bug where zooming on an image breaks after changing images
  3. Fix bug where coordinate and value display breaks after first zoom
  4. Maybe add an individual button for zooming on all images

0.1.1a8

PR:

Things to do

  • Update version numbers in
    • _version.py
    • meta.yaml
    • package.json
  • git add and git commit
  • tag
    git tag -a X.X.X -m 'comment'
  • push
    git push
    git push --tags
    
  • build and upload
    conda build conda-recipes
    anaconda login
    anaconda upload /path/to/ipywe-...tar.bz2
    

Cannot change formatting with .js files when using a development installation

After performing the development installation, I've been trying to make some small formatting changes in the ImageSlider and ImageDisplay widgets by changing the JavaScript code (changes in the tomorecon-prep branch). However, no matter what I try, I cannot get any of these changes to appear when testing them. I suspect this is a bug with the distribution process (either our implementation or the cookiecutter's implementation), but I'm not sure.

ImageSlider does not load successfully when running on Python 3

When I try to run the ImageSlider widget on Python 3 (3.6) I get the following series of errors in the web console:

> Wrong widget protocol version: received protocol version '', but was expecting major version '2'
> Couldn't process kernel message Wrong widget protocol version: received protocol version '', but was expecting major version '2'

Also, beneath the code cell (where the widget would normally appear, I got the following:

Widget Javascript not detected. It may not be installed or enabled properly.
Error rendering Jupyter widget. Widget not found:
{"model_id":"b030ed1215ff467dbba5de6cb5b299f"}

0.1.1a6

Tickets closed: https://github.com/scikit-beam/ipywe/milestone/2?closed=1

  • Update version numbers in
    • _version.py
    • meta.yaml
    • package.json
  • git add and git commit
  • tag
git tag -a X.X.X -m 'comment'
  • push
git push
git push --tags
  • build and upload
conda build conda-recipes
anaconda login
anaconda upload /path/to/ipywe-...tar.bz2

Conda Install Not Working

@yxqd
I just tried to see if the conda install ipywe command would work on my computer, and conda did not find it. Instead it raised the following error:

PackageNotFoundError: Package missing in current linux-64 channels: 
  - ipywe

Close matches found; did you mean one of these?

    ipywe: pywget

Quick way to retrieve the path selected

In my local version of fileselector, I added a couple of method that allow to quickly retrieve the path selected

input_folder_ui = fileselector.FileSelectorPanel(instruction='Select Image Folder', type='directory', 
                                                start_dir=working_dir, multiple=False)
input_folder_ui.show()

to retrieve the selection

> full_path_selection = input_folder_ui.result_full_path()
>basename_path_selection = input_folder_ui.result()

Here are the 2 methods in case you are interested

def result(self):
        _result = self.widgets[1].value
        if self.multiple:
            _selection = [_folder.split('|')[0].strip() for _folder in _result]
            return _selection
        else:
            return _result.split('|')[0].strip()
    
def result_full_path(self):
       _result = self.widgets[1].value
       if self.multiple:
            _selection = [_folder.split('|')[0].strip() for _folder in _result]
            full_path = [os.path.join(self.curdir, _file) for _file in _selection]
       else:
            _result = _result.split('|')[0].strip()
            full_path = os.path.join(self.curdir, _result)
       return full_path    

Manual input of path

The fileselector within the notebook is a awesome feature but sometimes we have to go through a lot of folders before reaching our final folder, it would be nice if there was on top of the widgets, a text box that allow us to enter the path manually.

Improve ImageSlider

The zooming of the image display works well. The widget can be more useful with the following functionalities:

  • show x y coordinates and value
  • add contrast selector

Version 0.1.1

Changes from 0.1.1a9 (#71):

  • #72: fileselector: added search box

Things to do

  • Update version numbers in _version.py/meta.yaml/package.json
  • git add and git commit
  • tag: git tag -a X.X.X -m 'comment'
  • push: git push ; git push --tags
  • build and upload
    conda build conda-recipes
    anaconda login
    anaconda upload /path/to/ipywe-...tar.bz2
    

Imageslider: value display bug when z-range is changed

When the z-range (contrast control) is adjusted, the z-value display does not give the correct value. It should show the pixel value in the original image, not the value in the range limited by the z-range control.

improve fileselector

fileselector is mostly working. Here are a few improvements that I would like to work on

  • Documenting the constructor
  • The css. Be sure that we are setting css for just this widget.
  • Signature of the callback function. It should probably take the selection as the input.

Version 0.1.2

Make a "stable" release.

Changes from 0.1.2a2:

  • None

Things to do

  • Update version numbers in _version.py/meta.yaml/package.json
  • tag and push:
    git tag -a X.X.X -m 'comment'
    git push --tags

Search tool does not clear itself

When user enter a search string and hit enter, the search works but the search string is still there. Any other folder selection will keep the search criteria...even if it looks like the string has been cleaned up.
search_bug

Error when trying to import ipywe.imageslider

Using python 3.5, I get the following error when trying to import imageslider

>>> import ipywe.imageslider
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-9-0da379c41c9d> in <module>()
      1 import NeuNorm
----> 2 import ipywe.imageslider
      3 from __code.normalization import utilities, gui_widgets
      4 
      5 ipts = utilities.get_ipts()

/Users/j35/anaconda/envs/py35/lib/python3.5/site-packages/ipywe/imageslider.py in <module>()
      2 from . import base
      3 from IPython.display import display, HTML, clear_output
----> 4 from cStringIO import StringIO
      5 from traitlets import Unicode, Integer, Float, HasTraits, observe
      6 import sys, os

ImportError: No module named 'cStringIO'

New blank line everytime a folder is entered

A new blank line gets inserted at the top of the panel every time a folder is entered. After entering a few folder, user always needs to scroll down to see the entire panel.

0.1.1a9

Changes:

  • #70: fileselector: added options for filter and "stay-alive"
  • acb365e: wizard: "previous" and "next" buttons

Things to do

  • Update version numbers in
    • _version.py
    • meta.yaml
    • package.json
  • git add and git commit
  • tag
    git tag -a X.X.X -m 'comment'
  • push
    git push
    git push --tags
    
  • build and upload
    conda build conda-recipes
    anaconda login
    anaconda upload /path/to/ipywe-...tar.bz2
    

Confirm details for setup.py

Jiao,
Can you look over the setup.py file and confirm that it contains all the info that we need. It's in the ian-source branch.

0.1.1a5

Tickets closed: https://github.com/scikit-beam/ipywe/milestone/1?closed=1

  • Update version numbers in
    • _version.py
    • meta.yaml
    • package.json
  • git add and git commit
  • tag
git tag -a X.X.X -m 'comment'
  • push
git push
git push --tags
  • build and upload
conda build conda-recipes
anaconda login
anaconda upload /path/to/ipywe-...tar.bz2

Version 0.1.2a1

Changes from 0.1.1:

Things to do

  • Update version numbers in _version.py/meta.yaml/package.json
  • git add and git commit
  • tag: git tag -a X.X.X -m 'comment'
  • push: git push ; git push --tags
  • build and upload
    conda build conda-recipes
    anaconda login
    anaconda upload /path/to/ipywe-...tar.bz2
    

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.