<jupyter_start><jupyter_text>Check EnvironmentThis notebook checks that you have correctly created the environment and that all packages needed are installed.  EnvironmentThe next command should return a line like (Mac/Linux):    //anaconda/envs/ztdl/bin/pythonor like (Windows 10):    C:\\\\Anaconda3\\envs\\ztdl\\python.exeIn particular you should make sure that you are using the python executable from within the course environment.If that's not the case do this:1. close this notebook2. go to the terminal and stop jupyer notebook3. make sure that you have activated the environment, you should see a prompt like:        (ztdl) $4. (optional) if you don't see that prompt activate the environment:    - mac/linux:                conda activate ztdl    - windows:            activate ztdl5. restart jupyter notebook<jupyter_code>import os
import sys
sys.executable<jupyter_output><empty_output><jupyter_text>Python 3.6The next line should say that you're using Python 3.6.x from Continuum Analytics. At the time of publication it looks like this (Mac/Linux):    Python 3.6.7 |Anaconda, Inc.| (default, Oct 23 2018, 14:01:38)    [GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)] on darwin    Type "help", "copyright", "credits" or "license" for more information.or like this (Windows 10):    Python 3.6.7 |Anaconda, Inc.| (default, Oct 28 2018, 19:44:12) [MSC v.1915 64 bit (AMD64)] on win32    Type "help", "copyright", "credits" or "license" for more information.but date and exact version of GCC may change in the future.If you see a different version of python, go back to the previous step and make sure you created and activated the environment correctly.<jupyter_code>import sys
sys.version<jupyter_output><empty_output><jupyter_text>JupyterCheck that Jupyter is running from within the environment. The next line should look like (Mac/Linux):    //anaconda/envs/ztdl/lib/python3.6/site-packages/jupyter.py'or like this (Windows 10):    C:\\Users\\paperspace\\Anaconda3\\envs\\ztdl\\lib\\site-packages\\jupyter.py<jupyter_code>import jupyter
jupyter.__file__<jupyter_output><empty_output><jupyter_text>Other packagesHere we will check that all the packages are installed and have the correct versions. If everything is ok you should see:        Using TensorFlow backend.        Houston we are go!If there's any issue here please make sure you have checked the previous steps and if it's all good please send us a question in the Q&A forum.<jupyter_code>import pip
import numpy
import jupyter
import matplotlib
import sklearn
import scipy
import pandas
import PIL
import seaborn
import h5py
import tensorflow
import keras


def check_version(pkg, version):
    actual = pkg.__version__.split('.')
    if len(actual) == 3:
        actual_major = '.'.join(actual[:2])
    elif len(actual) == 2:
        actual_major = '.'.join(actual)
    else:
        raise NotImplementedError(pkg.__name__ +
                                  "actual version :"+
                                  pkg.__version__)
    try:
        assert(actual_major == version)
    except Exception as ex:
        print("{} {}\t=> {}".format(pkg.__name__,
                                    version,
                                    pkg.__version__))
        raise ex

check_version(pip, '10.0')
check_version(numpy, '1.15')
check_version(matplotlib, '3.0')
check_version(sklearn, '0.20')
check_version(scipy, '1.1')
check_version(pandas, '0.23')
check_version(PIL, '5.3')
check_version(seaborn, '0.9')
check_version(h5py, '2.8')
check_version(tensorflow, '1.11')
check_version(keras, '2.2')

print("Houston we are go!")<jupyter_output>Houston we are go!
{'fraction_non_alphanumeric': 0.09684499314128944, 'fraction_numerical': 0.027434842249657063, 'mean_word_length': 3.5348258706467663, 'pattern_counts': {'":': 0, '<': 16, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '2286', 'license': 'MIT', 'n_tokens_mistral': 1178, 'n_tokens_neox': 1093, 'n_words': 386, 'path': 'course/0_Check_Environment.ipynb', 'repo_name': 'tetsu/zero-deep-learning', 'size': '3645'}