Snoopysclassroom.weebly.com



The IPython Notebook using JupiterRecently a neat program has been developed that allows you to type Python code and text in a neat manner for immediate publication to the internet. It is called Jupyter.To start the program, which is packaged with the Anaconda distribution, typeJupyter notebookAt a Windows powershell (type powershell in the search box next to the windows icon) command prompt. Running jupyter will bring up a window that looks like this:To create your own Python web interactive notebook, click New, then click Python Default. Your window will now look like this:In the pulldown box, you can determine what each cell contains by the pulldown box. This can be python code (code), text headers (header), or regular text with enhancements (markdown). Try experimenting with the jupyter menu to see what you can do. I copied and pasted a small program I wrote to compute factorials and I have posted that under python/python notebooks tab of my Weebly site.This autogenerates html code that, if you export it to an html file using jupyter, you can embed in any website as I have done on my weebly page.You can also save the file as an ipython notebook (.ipynb) file, which can be uploaded to the anaconda cloud for downloading by anyone you want to have share your file. Project:Using Jupyter running in your web browser, write a simple program in Python that calculates the square, cube, square root, and cube root of a number. The single function you need to do this is in the math library, which you will recall can be imported using the Import math command. The list of commands of the math library are here HYPERLINK "" ................
................

In order to avoid copyright disputes, this page is only a partial summary.

Google Online Preview   Download