org-arl / arlpy

ARL Python Tools
BSD 3-Clause "New" or "Revised" License
119 stars 37 forks source link

arlpy plotting is not showing the plots #5

Closed prasadtiru closed 6 years ago

prasadtiru commented 6 years ago

Tried this in a couple of machines. Ran the following in Jupyter lab:

import arlpy.plot

arlpy.plot.plot([0,20], [0,10], hold=True)
arlpy.plot.box(left=5, right=10, top=8)

The output is not showing the plot. The following is the output:

screen shot 2018-05-18 at 11 52 03 am

mchitre commented 6 years ago

arlpy.plot should work out of the box in Jupyter notebooks. For Bokeh to work in Jupyterlab, you need to have the jupyterlab_bokeh extension installed. In addition, you may want to disable Javascript in arlpy.plot by using arlpy.plot.enable_javascript() to avoid the "Javascript output is disabled" warnings.

P.S. The arlpy.plot.enable_javascript() implementation has a bug in release 1.3 that inverts the boolean input, so you'll need to set it as arlpy.plot.enable_javascript(True) instead of arlpy.plot.enable_javascript(False). This will be fixed in the next release.