File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -487,6 +487,8 @@ RUN pip install flashtext && \
487487 pip install osmnx && \
488488 apt-get -y install libspatialindex-dev && \
489489 pip install pytorch-ignite && \
490+ pip install qgrid && \
491+ pip install bqplot && \
490492 /tmp/clean-layer.sh
491493
492494# Tesseract and some associated utility packages
Original file line number Diff line number Diff line change 1+ import unittest
2+ import pandas as pd
3+ from qgrid import QgridWidget
4+
5+ class TestQgrid (unittest .TestCase ):
6+ def test_nans ():
7+ df = pd .DataFrame ([(pd .Timestamp ('2017-02-02' ), np .nan ),
8+ (4 , 2 ),
9+ ('foo' , 'bar' )])
10+ view = QgridWidget (df = df )
11+ view ._handle_qgrid_msg_helper ({
12+ 'type' : 'change_sort' ,
13+ 'sort_field' : 1 ,
14+ 'sort_ascending' : True
15+ })
Original file line number Diff line number Diff line change 1+ import unittest
2+ import numpy as np
3+ import bqplot .pyplot as plt
4+
5+ class TestBqplot (unittest .TestCase ):
6+ def test_figure (self ):
7+ size = 100
8+ scale = 100.0
9+ np .random .seed (0 )
10+ x_data = np .arange (size )
11+ y_data = np .cumsum (np .random .randn (size ) * scale )
12+ fig = plt .figure (title = 'First Example' )
13+ plt .plot (y_data )
14+ fig .save_png ()
You can’t perform that action at this time.
0 commit comments