-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Bokeh and Plotly (#15)
* Add support for Bokeh and Plotly
- Loading branch information
Showing
24 changed files
with
13,098 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
sudo: false | ||
language: python | ||
os: linux | ||
dist: xenial | ||
python: | ||
- 3.9 | ||
- 3.8 | ||
- 3.7 | ||
- 3.6 | ||
|
||
env: | ||
- INSTALL_DEPS="" | ||
- INSTALL_DEPS="--no-dev" | ||
|
||
before_install: | ||
- pip install poetry | ||
- curl -fsS -o get-poetry.py https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | ||
- python get-poetry.py -y | ||
- export PATH="$PATH:$HOME/.poetry/bin" | ||
- poetry config virtualenvs.in-project true | ||
|
||
install: | ||
- poetry install | ||
- poetry install $INSTALL_DEPS -E test | ||
|
||
script: | ||
- black --check . | ||
- flake8 | ||
- coverage run --source esparto -m pytest | ||
- mypy esparto tests | ||
- coverage run --append --source esparto -m pytest | ||
|
||
after_success: | ||
- bash <(curl -s https://codecov.io/bash) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,35 @@ | ||
# Examples | ||
|
||
### Data Analysis Report | ||
### Data Analysis | ||
|
||
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/domvwt/esparto/blob/main/docs/examples/iris.ipynb) | ||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/domvwt/esparto/main?filepath=docs%2Fexamples%2Firis.ipynb) | ||
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/domvwt/esparto/blob/main/docs/examples/iris-report.ipynb) | ||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/domvwt/esparto/main?filepath=docs%2Fexamples%2Firis-report.ipynb) | ||
|
||
The iris dataset is one of the most well known datasets in statistics and data science. This example notebook shows how we can put together a simple data analysis report in esparto. | ||
|
||
This example covers | ||
This example covers: | ||
|
||
* Text content with markdown formatting | ||
* Including images from files | ||
* Converting a Pandas DataFrame to a table | ||
* Adding plots from Matplotlib and Seaborn | ||
|
||
<br> | ||
|
||
### Interactive Plotting | ||
|
||
[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/domvwt/esparto/blob/main/docs/examples/interactive-plots.ipynb) | ||
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/domvwt/esparto/main?filepath=docs%2Fexamples%2Finteractive-plots.ipynb) | ||
|
||
The [pandas-bokeh](https://github.com/PatrikHlobil/Pandas-Bokeh) library offers convenient functions for producing interactive Bokeh plots | ||
with few lines of code. | ||
|
||
With the [Plotly backend for Pandas](https://plotly.com/python/pandas-backend/) | ||
we can access the Plotly Express API directly from the '.plot()' method of any DataFrame or Series. | ||
|
||
This example will show basic examples from each library: | ||
|
||
* Interactive plotting with Bokeh and Plotly | ||
* Adding interactive content to the page | ||
|
||
<br> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,4 +22,8 @@ | |
|
||
## ::: esparto._content.FigureMpl | ||
|
||
## ::: esparto._content.FigureBokeh | ||
|
||
## ::: esparto._content.FigurePlotly | ||
|
||
<br> |
Oops, something went wrong.