%matplotlib inline
from pylab import *
import skrf as rf
from skrf.media import DistributedCircuit
from skrf import Frequency

from ipywidgets import interact

# define a frequency object
freq = Frequency(0,10,1001,'ghz')

# create a Media object for RG-58, based on distributed ckt values
rg58 = DistributedCircuit(frequency = freq,
                          C =93.5e-12,#F/m
                          I =273e-9,  #H/m
                          R =0,#53e-3,   #Ohm/m
                          G =0,       #S/m

load = rg58.load(.5)
def func(d1=180,d2=180):
    l1 =rg58.line(d=d1,unit='deg')
    l2 =rg58.shunt_delay_open(d=d2,unit='deg')
    ntwk = l2**l1**load

a=interact(func, d1= (0,360,10),d2= (0,360,10),embed=True);
No display found. Using non-interactive Agg backend.
/home/docs/checkouts/readthedocs.org/user_builds/scikit-rf/envs/latest/lib/python3.7/site-packages/skrf/plotting.py:1446: UserWarning: Style includes a parameter, 'interactive', that is not related to style.  Ignoring
  mpl.style.use(os.path.join(pwd, style_file))
/home/docs/checkouts/readthedocs.org/user_builds/scikit-rf/envs/latest/lib/python3.7/site-packages/skrf/media/distributedCircuit.py:216: RuntimeWarning: invalid value encountered in true_divide
  return sqrt(self.Z/self.Y)
[ ]: