Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda setup #264

Merged
merged 41 commits into from
Feb 16, 2021
Merged
Show file tree
Hide file tree
Changes from 37 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
340ebfa
added functionality to delete Vis
Sep 30, 2020
0603de1
merging master
Sep 30, 2020
f93620b
merged with master
Sep 30, 2020
0a3bd41
fixed deletion logic
Oct 4, 2020
89ae37f
merging with master
Oct 4, 2020
6678c33
add observer to automatically update deletions
Oct 5, 2020
5ad35f8
able to refresh widget on setting intent
Oct 14, 2020
6c11f72
support for setting intent from frontend
Oct 14, 2020
48443af
fixed merge conflicts
Oct 14, 2020
535793c
fixed merge conflict
Oct 20, 2020
a85e943
quick fix to output
Oct 20, 2020
b0d0507
Merge branch 'master' of https://github.com/lux-org/lux
Oct 22, 2020
a462994
changed variable intentindex name
Oct 23, 2020
49d9837
Merge branch 'master' of https://github.com/lux-org/lux
Oct 29, 2020
a778b23
Merge branch 'master' of https://github.com/lux-org/lux
Nov 2, 2020
615c2f3
Merge branch 'master' of https://github.com/lux-org/lux
Nov 3, 2020
b3adac1
added better error msg for > 1 intent for vis
Nov 5, 2020
545c192
Merge branch 'master' of https://github.com/lux-org/lux
Nov 5, 2020
13c728a
reverting some changes
Nov 5, 2020
480215f
Merge branch 'master' of https://github.com/lux-org/lux
Nov 16, 2020
93870fc
merged master
Nov 18, 2020
4d2894f
Merge branch 'master' of https://github.com/lux-org/lux
Nov 19, 2020
628945b
Merge branch 'master' of https://github.com/lux-org/lux
Dec 9, 2020
98bd99e
Updated readme
Dec 9, 2020
361f702
updated readthedoc documentation
Dec 9, 2020
5c0562b
added config to default display documentation
Dec 9, 2020
eb9e0ff
Update README.md
dorisjlee Dec 9, 2020
fa32732
merge conflicts
Dec 24, 2020
ff3a1ed
Merge branch 'master' of https://github.com/lux-org/lux
Dec 28, 2020
6958e1f
Merge branch 'master' of https://github.com/lux-org/lux
Dec 31, 2020
00197e0
Merge branch 'master' of https://github.com/lux-org/lux
Jan 8, 2021
430dddf
Merge branch 'master' of https://github.com/lux-org/lux
Feb 2, 2021
0837ba7
Conda support
Feb 12, 2021
94c2cce
Merge branch 'master' of https://github.com/lux-org/lux
Feb 12, 2021
47811f6
Merge branch 'master' into conda_setup
Feb 12, 2021
95fdd7e
fixed indentation on readme
Feb 12, 2021
dba56a6
fixed typo in readme
Feb 12, 2021
0200af5
Update README.md
dorisjlee Feb 15, 2021
aa41a04
added documentation for updating recipes
Feb 16, 2021
8072a80
moving lux-widget yaml to lux-widget repo
Feb 16, 2021
f651719
Update CONTRIBUTING.md
dorisjlee Feb 16, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<a href='https://forms.gle/XKv3ejrshkCi3FJE6'>
<img src='https://img.shields.io/static/v1?label=email&message=signup&color=brightgreen' alt='Mailing List' align="center"/>
</a>
<a href='https://mybinder.org/v2/gh/lux-org/lux-binder/master'>
<a href='https://mybinder.org/v2/gh/lux-org/lux-binder/master?urlpath=lab/'>
<img src='https://img.shields.io/badge/launch-binder-579ACA.svg?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFkAAABZCAMAAABi1XidAAAB8lBMVEX///9XmsrmZYH1olJXmsr1olJXmsrmZYH1olJXmsr1olJXmsrmZYH1olL1olJXmsr1olJXmsrmZYH1olL1olJXmsrmZYH1olJXmsr1olL1olJXmsrmZYH1olL1olJXmsrmZYH1olL1olL0nFf1olJXmsrmZYH1olJXmsq8dZb1olJXmsrmZYH1olJXmspXmspXmsr1olL1olJXmsrmZYH1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thPgQqMyQYb2OtB0WxsZ3BeG3+wpRb1vzl2UYBog8FfGhttFKjtAclnZYrRo9ryG9uG/FZQU4AEg8ZE9LjGMzTmqKXPLnlWVnIlQQTvxJf8ip7VgjZjyVPrjw1te5otM7RmP7xm+sK2Gv9I8Gi++BRbEkR9EBw8zRUcKxwp73xkaLiqQb+kGduJTNHG72zcW9LoJgqQxpP3/Tj//c3yB0tqzaml05/+orHLksVO+95kX7/7qgJvnjlrfr2Ggsyx0eoy9uPzN5SPd86aXggOsEKW2Prz7du3VID3/tzs/sSRs2w7ovVHKtjrX2pd7ZMlTxAYfBAL9jiDwfLkq55Tm7ifhMlTGPyCAs7RFRhn47JnlcB9RM5T97ASuZXIcVNuUDIndpDbdsfrqsOppeXl5Y+XVKdjFCTh+zGaVuj0d9zy05PPK3QzBamxdwtTCrzyg/2Rvf2EstUjordGwa/kx9mSJLr8mLLtCW8HHGJc2R5hS219IiF6PnTusOqcMl57gm0Z8kanKMAQg0qSyuZfn7zItsbGyO9QlnxY0eCuD1XL2ys/MsrQhltE7Ug0uFOzufJFE2PxBo/YAx8XPPdDwWN0MrDRYIZF0mSMKCNHgaIVFoBbNoLJ7tEQDKxGF0kcLQimojCZopv0OkNOyWCCg9XMVAi7ARJzQdM2QUh0gmBozjc3Skg6dSBRqDGYSUOu66Zg+I2fNZs/M3/f/Grl/XnyF1Gw3VKCez0PN5IUfFLqvgUN4C0qNqYs5YhPL+aVZYDE4IpUk57oSFnJm4FyCqqOE0jhY2SMyLFoo56zyo6becOS5UVDdj7Vih0zp+tcMhwRpBeLyqtIjlJKAIZSbI8SGSF3k0pA3mR5tHuwPFoa7N7reoq2bqCsAk1HqCu5uvI1n6JuRXI+S1Mco54YmYTwcn6Aeic+kssXi8XpXC4V3t7/ADuTNKaQJdScAAAAAElFTkSuQmCC' alt='Binder' align="center"/>
</a>
<a href="https://codecov.io/gh/lux-org/lux">
Expand All @@ -32,7 +32,7 @@ Lux is a Python library that makes data science easier by automating aspects of

Here is a [1-min video](https://www.youtube.com/watch?v=qmnYP-LmbNU) introducing Lux, and [slides](http://dorisjunglinlee.com/files/Zillow_07_2020_Slide.pdf) from a more extended talk.

Try out Lux on your own in a live Jupyter Notebook [here](https://mybinder.org/v2/gh/lux-org/lux-binder/master?urlpath=tree/demo/cars_demo.ipynb)!
Try out Lux on your own in a live Jupyter Notebook [here](https://mybinder.org/v2/gh/lux-org/lux-binder/master?urlpath=lab/tree/demo/cars_demo.ipynb)!

# Getting Started

Expand Down Expand Up @@ -139,7 +139,16 @@ To get started, Lux can be installed through [PyPI](https://pypi.org/project/lux
pip install lux-api
```

This installation includes the Lux Jupyter widget frontend, [lux-widget](https://pypi.org/project/lux-widget/).
This installation includes the Lux Jupyter widget frontend, [lux-widget](https://pypi.org/project/lux-widget/).

To install with conda:

```bash
# only required if you have not added conda-forge to your channels yet
conda config --add channels conda-forge

conda install lux-api
```

## Setup in Jupyter Notebook, VSCode

Expand Down
43 changes: 43 additions & 0 deletions conda.recipe/lux-api/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{% set name = "lux-api" %}
{% set version = "0.2.2" %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to read this number directly from _version.py so that we wouldn't have to update the recipe every time there is a new release? A similar thing that reads from Github tags is done here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try this approach out, I have already uploaded 0.2.2 to conda-forge so I will try it for the new release

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok that sounds good!



package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/lux-api-{{ version }}.tar.gz
sha256: 01c5605a16b6130f159ab7d1d9d4ffd6fdc49ea854d9ab0f6481194e701c4a1f

build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv

requirements:
host:
- pip
- python >=3.6
run:
- python >=3.6
- scipy >=1.3.3 altair>=4.0.0 numpy>=1.16.5 pandas>=1.1.0 scikit-learn>=0.22

test:
imports:
- lux
- lux._config
commands:
- pip check
requires:
- pip

about:
home: https://github.com/lux-org/lux
summary: A Python API for Intelligent Data Discovery
license: Apache-2.0
license_file: LICENSE

extra:
recipe-maintainers:
- dorisjlee
48 changes: 48 additions & 0 deletions conda.recipe/lux-widget/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{% set name = "lux-widget" %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put this file inside the lux-widget repo?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I can do that

{% set version = "0.1.3" %}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similiarly, this way the version can be read in from _version.py or package.json



package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/lux-widget-{{ version }}.tar.gz
sha256: f410138514f355c8c9de4f1f8c9534495c5418e9ea1041e8eff03a84b507b60b

build:
number: 0
noarch: python
script: {{ PYTHON }} -m pip install . -vv

requirements:
host:
- ipywidgets >=7.5.0
- jupyter
- notebook >=4.0.0
- pip
- python >=3.6
run:
- ipywidgets >=7.5.0
- jupyter
- notebook >=4.0.0
- python >=3.6

test:
imports:
- luxwidget
- luxwidget.nbextension
commands:
- pip check
requires:
- pip

about:
home: https://github.com/lux-org/lux-widget
summary: Jupyter Widget for Intelligent Data Discovery
license: Apache-2.0
license_file: LICENSE

extra:
recipe-maintainers:
- dorisjlee