This notebook demostrates the current capability of the IDL IPython/Jupyter Kernel
a = 1
b = 2
arr = indgen(5)
str = "Hello, World!"
help,a,b,str,arr
A INT = 1 B INT = 2 STR STRING = 'Hello, World!' ARR INT = Array[5]
print,str
Hello, World!
FUNCTION mysin, x
return, sin(x)
END
print, mysin(2)
0.90930
PRO hello_world
print,"Hello, World!"
END
hello_world
Hello, World!
;;This enables inline plotting
!inline=1
x = 2*!PI*0.01*indgen(100)
y1 = sin(x)
y2 = cos(x)
loadct,39
window,xsize=800,ysize=500
plot,x,y1,title='Trig Functions',xtitle='Radians',ytitle='Amplitude',xrange=[0,6],charsize=1.5,background=255,color=0
oplot,x,y2,color=50