GeoscienceAustralia / dea-notebooks

Repository for Digital Earth Australia Jupyter Notebooks: tools and workflows for geospatial analysis with Open Data Cube and Xarray
https://docs.dea.ga.gov.au/notebooks/
Apache License 2.0
439 stars 127 forks source link

Supporting both lab and notebook #343

Closed Kirill888 closed 4 years ago

Kirill888 commented 4 years ago

Most notebooks use %matplotlib inline, but some use %pylab notebook. Latter only works inside notebook but not in lab, in lab one needs to use %pylab widget to get similar effect.

Not sure if notebooks with %pylab notebook need to have interactive graphs or this just a nice to have.

Also note that %pylab magic is kinda deprecated in favor of %matplotlib (%pylab imports some functions from numpy/scipy into global namespace to be more Matlab-like)

robbibt commented 4 years ago

All notebooks in develop have been updated for use in Jupyter Lab (e.g. removed %pylab notebook in favour of %matplotlib inline)