Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
39 changes: 7 additions & 32 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,14 @@ name: Build
on:
push:
branches: [ master ]
paths:
- js/**
- bqplot/**
pull_request:
branches: '*'
paths:
- js/**
- bqplot/**

env:
PIP_DISABLE_PIP_VERSION_CHECK: 1
Expand Down Expand Up @@ -48,7 +54,7 @@ jobs:
run: jupyter labextension list 2>&1 | grep bqplot

- name: Discover typos with codespell
run: codespell --ignore-words-list="afterall,curvelinear,hist" --skip="./share,./.git/*,./js/node_modules/*,./js/dist/*,*.csv,*.json,*.lock,*.map"
run: codespell --ignore-words-list="afterall,curvelinear,hist" --skip="./share,./.git/*,./js/node_modules/*,./js/dist/*,*.csv,*.json,*.lock,*.map,docs/*"

- name: Python PEP8 check
run: flake8 bqplot --ignore=E501,W504,W503
Expand Down Expand Up @@ -183,34 +189,3 @@ jobs:

- name: Validate the labextension
run: jupyter labextension list 2>&1 | grep bqplot

JupyterLab2-build:
runs-on: ubuntu-latest
needs: [build]

strategy:
fail-fast: false

steps:

- name: Checkout
uses: actions/checkout@v2

- name: Install Conda environment with Micromamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-name: bqplot-test
environment-file: test-environment.yml
channels: conda-forge
extra-specs: |
jupyterlab=2

- uses: actions/download-artifact@v2
with:
name: dist ${{ github.run_number }}
path: ./dist

- name: Install the labextension
env:
NODE_OPTIONS: --openssl-legacy-provider
run: jupyter labextension install dist/bqplot*.tgz --debug
18 changes: 16 additions & 2 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,24 @@
name: Build and Deploy
name: Docs

on:
push:
branches:
- master
paths:
- docs/**
- bqplot/**
- mkdocs.yml
pull_request:
branches:
- '*'
paths:
- docs/**
- bqplot/**
- mkdocs.yml

defaults:
run:
shell: bash -l {0}

jobs:
build:
Expand All @@ -21,8 +33,10 @@ jobs:
micromamba-version: '0.22.0'
environment-file: 'docs/mkdocs-environment.yml'

- name: Discover typos with codespell
run: codespell --ignore-words-list="afterall,curvelinear,hist" --skip="share,.git/*,js/*,*.csv,*.json,*.lock,*.map"

- name: Build the docs site
shell: bash -l {0}
run: mkdocs build --site-dir dist

- name: Upload artifact
Expand Down
49 changes: 0 additions & 49 deletions bqplot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,55 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.

r"""

==============
BQPlot Package
==============

.. currentmodule:: bqplot


Each plot starts with a `Figure` object. A `Figure` has a number of `Axis`
objects (representing scales) and a number of `Mark` objects. `Mark`
objects are a visual representation of the data. Scales transform data
into visual properties (typically a number of pixels, a color, etc.).

.. jupyter-execute::

from bqplot import *

x_data = range(10)
y_data = [i ** 2 for i in x_data]

x_sc = LinearScale()
y_sc = LinearScale()

ax_x = Axis(label="Test X", scale=x_sc, tick_format="0.0f")
ax_y = Axis(
label="Test Y", scale=y_sc, orientation="vertical", tick_format="0.2f"
)

line = Lines(
x=x_data, y=y_data,
scales={"x": x_sc, "y": y_sc}, colors=["red", "yellow"]
)

Figure(axes=[ax_x, ax_y], marks=[line])

.. automodule:: bqplot.figure
.. automodule:: bqscales.scales
.. automodule:: bqplot.marks
.. automodule:: bqplot.axes
.. automodule:: bqplot.market_map
.. automodule:: bqplot.interacts
.. automodule:: bqplot.traits
.. automodule:: bqplot.toolbar

.. automodule:: bqplot.pyplot

"""

from .figure import * # noqa
from .axes import * # noqa
from .marks import * # noqa
Expand Down
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ site_url: https://bqplot.github.io/
While `bqplot` provides support for static plotting for most of the chart types, it really shines in interactive plotting where data attributes are updated in an event-driven fashion (using ipywidgets, click handlers etc.)

## Python API

Two APIs are provided in bqplot:

* [__Pyplot__](usage/pyplot.md)
Expand Down
1 change: 1 addition & 0 deletions docs/mkdocs-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ channels:
dependencies:
- python
- pip
- codespell
- pandas
- jupyter
- bqscales
Expand Down