<jupyter_start><jupyter_text>Let's first check the Python version you have installed on your machine.Remember, to run the examples, it must be at least 3.4<jupyter_code>import sys
print ("Your Python version is", sys.version)<jupyter_output>Your Python version is 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44:40) [MSC v.1600 64 bit (AMD64)]<jupyter_text>Now let's check if you have all the necessary toolkits installed and working properly:<jupyter_code>errors = 0
try:
    import numpy as np
    print ("Numpy installed, version", np.__version__)
except ImportError:
    print ("Numpy is not installed!")
    errors += 1
try:
    import scipy
    print ("Scipy installed, version", scipy.__version__)
except ImportError:
    print ("Scipy is not installed!")
    errors += 1
try:
    import matplotlib
    print ("Matplotlib installed, version", matplotlib.__version__)
except ImportError:
    print ("Matplotlib is not installed!")
    errors += 1
try:
    import sklearn
    print ("Sklearn installed, version", sklearn.__version__)
except ImportError:
    print ("Sklearn is not installed!")
    errors += 1
try:
    import bs4
    print ("Beautifulsoup4  installed, version", bs4.__version__)
except ImportError:
    print ("Beautifulsoup4  is not installed!")
    errors += 1
try:
    import networkx
    print ("Networkx installed, version", networkx.__version__)
except ImportError:
    print ("Networkx is not installed!")
    errors += 1
try:
    import nltk
    print ("Nltk installed, version", nltk.__version__)
except ImportError:
    print ("Nltk is not installed!")
    errors += 1
try:
    import gensim
    print ("Gensim installed, version", gensim.__version__)
except ImportError:
    print ("Gensim is not installed!")
    errors += 1
try:
    import xgboost
    print ("XGBoost installed, version", xgboost.__version__)
except ImportError:
    print ("XGBoost is not installed!")
    errors += 1
try:
    import theano
    print ("Theano installed, version", theano.__version__)
except ImportError:
    print ("Theano is not installed!")
    errors += 1
try:
    import keras
    import pkg_resources
    vs = pkg_resources.get_distribution("keras").version
    print ("Keras installed, version", vs)
except ImportError:
    print ("Keras is not installed!")
    errors += 1<jupyter_output>Keras installed, version 0.1.2<jupyter_text>This is a $\LaTeX$ inline equation: $x = Ax+b$And this is a one-liner: $$x = Ax + b$$<jupyter_code>%%latex
\[
 |u(t)| = 
  \begin{cases} 
   u(t) & \text{if } t \geq 0 \\
   -u(t)       & \text{otherwise }
  \end{cases}
\]
%%latex
\begin{align}
f(x) &= (a+b)^2 \\
     &= a^2 + (a+b) + (a+b) + b^2 \\
     &= a^2 + 2\cdot (a+b) + b^2
\end{align}<jupyter_output><empty_output><jupyter_text>Here's the verdict:<jupyter_code>if errors == 0:
    print ("Your machine can run the code")
else:
    print ("We found %i errors. Please check them and install the missing toolkits" % errors)<jupyter_output>Your machine can run the code
{'fraction_non_alphanumeric': 0.11796246648793565, 'fraction_numerical': 0.02111260053619303, 'mean_word_length': 3.7990353697749195, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 14, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '238886', 'license': 'MIT', 'n_tokens_mistral': 1034, 'n_tokens_neox': 974, 'n_words': 321, 'path': 'Chapter1/First steps.ipynb', 'repo_name': 'Fernando-Rodrigo/Python-Data-Science-Essentials-Third-Edition', 'size': '2984'}