<jupyter_start><jupyter_text>**Introduction***Lorenz Equations* are\begin{align}\dot{x} & = \sigma(y-x) \\\dot{y} & = \rho x - y - xz \\\dot{z} & = -\beta z + xy\end{align}*Maxwell's Equations* are\begin{align}\nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} & = \frac{4\pi}{c}\vec{\mathbf{j}} \\   \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\\nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\\nabla \cdot \vec{\mathbf{B}} & = 0 \end{align}<jupyter_code>import numpy as np
arr = np.array([ [1, 2], [3, 4] ])

print(arr.ndim)                # No. of dimensions (attribute)
print(arr.shape)               # Shape of the array
print(arr.size)                # Size of the array
print(arr.dtype)               # Array data type
x = np.linspace(-10, 10, 21)

print(x)

y2 = x**2

print(y2)

y3 = x**3

pylab.plot(x, y3)

pylab.plot(x, y2, "--r")
x = np.linspace(0, 360, 91)

print(x)

y2 = sin(x * 3.1416/180.0)
y3 = cos(x * 3.1416/180.0)

print(y2)

pylab.plot(x, y2, ".-r")
pylab.plot(x, y3)
import netCDF4

ncfile = netCDF4.Dataset('standard_atmosphere.nc')  # Open file

print(ncfile.dimensions)        # All Dimension objects in file

print(ncfile.variables)         # All Variable objects in file

print (ncfile.variables.keys())  # All Variable names in file
T = ncfile.variables["temperature"]   # Get Variable object for "temperature"

print(type(T))

T_data = T[:]          # Extract NumPy data array from Variable

print(type(T_data))

print(T.ncattrs())      # List all variable attributes

T.units                # Units attribute
T_data
A = ncfile.variables["altitude"]
A_data = A[:]
print(A_data)
pylab.plot(T_data,A_data)
pylab.grid()
pylab.ylabel("Altitude ["+A.units+"]")
pylab.xlabel("Temperature ["+T.units+"]")
pylab.title("Altitude vs Temperature")
from IPython.html.widgets import interact, fixed
from IPython.html import widgets

def add(x, y, absolute=False):
    return x + y

def show_add(x, y, absolute=False):
    if absolute:
        print("The sum is absolutely %d" % add(abs(x), abs(y)))
    else:
        print("The sum is %d" % add(x, y))

interact(show_add, x=3, y=(0,9), absolute=False)<jupyter_output>The sum is absolutely 7
{'fraction_non_alphanumeric': 0.18382677861246133, 'fraction_numerical': 0.02562969509500663, 'mean_word_length': 3.3041825095057034, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '369464', 'license': 'ECL-2.0', 'n_tokens_mistral': 911, 'n_tokens_neox': 877, 'n_words': 208, 'path': 'jupyterhub/notebooks/NCAR-SEA-2015.ipynb', 'repo_name': 'jr3cermak/robs-kitchensink', 'size': '2263'}