{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "# JUPYTER NOTEBOOK.\n", "In this course we will be using jupyter notebook is an environment for writing and testing your program quickly. It is famous in data science and other science fields. It I fairly easy install and use, with great interface. Jupyter notebook can be installed through ANACONDA NAVIGATOR which is open source distribution that ease python data science and machine learning. It includes 250+ popular data science packages and the conda package and virtual environment manager for Windows, Linux, and MacOS. When Anacoda navigator is installed it comes with jupyter notebook and python.\n", "
\n", "\n", "## How to install Anaconda Navigator.\n", "1. Go to https://anaconda.org/ and click on download Anoconda.\n", "\n", "\n", "\n", "
\n", "
\n", "2.\tSelect your platform windows, Mac or Linux, and then scroll down to select your Python 3.6 version.\n", "\n", "
\n", "
\n", "3.\tClick next.\n", "\n", "
\n", "
\n", "4.\tClick on agree.\n", "\n", "
\n", "
\n", "5.\tHere select just for me.\n", "\n", "
\n", "
\n", "6.\tSelect where you want to save you tool. (Here I am saving it on my anaconda file on a python folder on my desktop).\n", "\n", "
\n", "
\n", "The next window provides you two Advanced Installation options:
\n", "Option 1:\n", "If you want to have
\n", "• Python3 as an additional environment that only works in Anaconda, \tAND
\n", "•\tYour default python version (either Python2 or Python3 that you have already installed) in other applicaions
\n", "\n", "
\n", "
\n", "OR\n", "Option 2:\n", "If you want to have
\n", "•\tPython3 as your default python version
\n", "(This will over-ride your previous Python versions, if any and automatically add Python3 to envrionment)
\n", "\n", "
\n", "
\n", "7.\tClick on next and then install. Be patience, it will take a few minutes to complete installing.\n", "\n", "
\n", "
\n", "8.\tAfter download is completed click on next and then click on install Microsoft VSCode if you having Windows.\n", "\n", "
\n", "
\n", "9.\tClick next and then finish.\n", "\n", "
\n", "
\n", "10.\tStart anaconda navigator by double clicking on to it where you saved it or from your toolbar through “tap to search”.\n", "
\n", "\n", "## Lunching Jupyter Notebook\n", "Lunch jupyter notebook by clicking on the lunch button under Jupyter notebook.it will open a browser with a localhost:8888. **[ Note: When you lunch jupyter notebook, you might have an interface that looks like a command line. That is actually jupyter notebook server. So, if you closed it, your jupyter notebook will not work.]**\n", "
\n", "\n", "
\n", "
\n", "See screenhsot below of a lunched jupter notebook.\n", "
\n", "\n", "
\n", "
\n", "\n", "# CREATE PYTHON SCRIPT.\n", "1.\tGo to desktop and create a new folder, name it PythonExternalScript, get to and access the folder by clicking on desktop(since we created it in deskotp),then the PythonExternalScript.\n", "
\n", "\n", "
\n", "
\n", "2.\tTo create a new notebook, click on NEW on the top right corner of you jupyter interface and then click on python 3\n", "\n", "
\n", "
\n", "3.\tA new notebook will be created as shown below.\n", "\n", "
\n", "
\n", "4.\tChange the name of the notebook by clicking on Untitled.Name the notebook “Script1”.\n", "\n", "
\n", "
\n", "5.\tOn each jupyter notebook, there is a cell which is the box with green borders. Each cell represents a set of codes. This is where you type your code.\n", "\n", "
\n", "
" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'C:\\\\Users\\\\hubert\\\\Downloads'" ] }, "execution_count": 1, "metadata": {}, "output_type": "execute_result" } ], "source": [ "pwd" ] }, { "cell_type": "markdown", "metadata": { "hide_input": true }, "source": [] } ], "metadata": { "celltoolbar": "Edit Metadata", "kernelspec": { "display_name": "Python 3", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.6.5" } }, "nbformat": 4, "nbformat_minor": 2 }