CDAT / jupyter-vcdat

A Jupyter Lab extension based on vCDAT.
BSD 3-Clause "New" or "Revised" License
6 stars 5 forks source link

each time a file is opened a new vcs canvas tab is created #110

Closed doutriaux1 closed 5 years ago

doutriaux1 commented 5 years ago

Describe the bug As first reported at: https://github.com/CDAT/jupyter-vcdat/pull/109 Each time a variable is loaded from a file the canvas object is recreated (probably a call to canvas = vcs.init() is made somewhere. This leads to a new vcs tab to appear (in the back of the original one so it looks likes the plot failed)

To Reproduce Steps to reproduce the behavior:

  1. open clt.nc
  2. load clt
  3. open clt.nc
  4. load u and v
  5. plot with vector graphic method.

Expected behavior Second plot appears in original vcs canvas tab

Desktop (please complete the following information):