# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python [conda env:widgets3]
#     language: python
#     name: conda-env-widgets3-py
# ---

import ipywidgets as widgets
from IPython.display import display
import sidecar
import vcs
import cdms2
import os

f = cdms2.open(os.path.join(vcs.sample_data,"clt.nc"))
s=f("clt")

# +
gm = vcs.createisofill()
gm.levels = [20,50,80]
gm.ext_1 = "y"
gm.ext_2 = "y"

tmpl = vcs.createtemplate()
tmpl.mean.priority=0
tmpl.scale(.5)
# -

sc = sidecar.Sidecar(title="VCS")
x = vcs.init()
y = vcs.init(display_target=sc)
z = vcs.init(display_target="inline")

x.plot(s, gm, tmpl)

y.plot(s*2.)

z.plot(s/10.)

gm2 = vcs.createisoline()
gm2.levels = gm.levels
x.plot(s,gm2,tmpl)

# +
#x.clear()
# -




StarcoderdataJupyterScriptsDedupFiltered