diff --git a/notebooks/kernel_example.ipynb b/notebooks/kernel_example.ipynb index e1f25e8..f6860be 100644 --- a/notebooks/kernel_example.ipynb +++ b/notebooks/kernel_example.ipynb @@ -82,7 +82,7 @@ ], "source": [ "plummer = kernel.factory(name='EllipticalPlummer',lon=0,lat=0,r_h=0.1,ellipticity=0.5, position_angle=45)\n", - "print plummer" + "print(plummer)" ] }, { @@ -227,9 +227,9 @@ "# `extension` member, though the meaning of `extension` is \n", "# different for each kernel type\n", "\n", - "print plummer\n", - "print king\n", - "print exponential" + "print(plummer)\n", + "print(king)\n", + "print(exponential)" ] }, { @@ -317,7 +317,7 @@ "ker.extension = 0.2\n", "ker.r_h = 0.2 \n", "\n", - "print ker" + "print(ker)" ] }, { @@ -340,7 +340,7 @@ "try:\n", " ker.r_h = 40\n", "except ValueError as e:\n", - " print \"Error:\",e\n" + " print(\"Error:\",e)\n" ] }, {