<jupyter_start><jupyter_text>Brain-hacking 101Author: [**<NAME>**](http://arokem.org), [**The University of Washington eScience Institute**](http://escience.washington.edu)  Hack 0: What is this thing? This is an [IPython](http://ipython.org) notebook. It is a format for writing, sharing and presenting technical documents, such as scientific analysis. Each section in this notebook is caled a 'cell'. The current cell is designated as a *markdown* cell. This means, that it is meant to show mostly text. The [markdown format](https://help.github.com/articles/markdown-basics/) is used by many to document software and other things, and allows some light annotations, to add things like links, images, section headings, etc.When you hit shift-return, this cell gets rendered. The following cell is a code cell. When you hit shift-return in that cell, the code in that cell gets executed<jupyter_code>a = 1<jupyter_output><empty_output><jupyter_text>That wasn't too sophisticated, but notice that as long as the kernel is running, that variable persists. For example, the following cell does what you might expect.<jupyter_code>print(a)<jupyter_output>1<jupyter_text>We'll get to plotting in a little while, but for now let me just show you that you can embed figures in the notebook, by setting a magic command: `%matplotlib inline`.<jupyter_code>%matplotlib inline<jupyter_output><empty_output><jupyter_text>If you run that, the plots that you create will get embedded into the notebook. See the following cell for a simple example (we'll explain all of this example in a later section)<jupyter_code>import matplotlib.pyplot as plt
plt.plot([0, 1, 2, 3, 4, 5], [0, 2, 4, 8, 16, 32])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.088098016336056, 'fraction_numerical': 0.011668611435239206, 'mean_word_length': 5.596153846153846, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 1, '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': '435374', 'license': 'Apache-2.0', 'n_tokens_mistral': 521, 'n_tokens_neox': 486, 'n_words': 223, 'path': 'beginner-python/000-notebooks.ipynb', 'repo_name': 'OHBM-Seattle/brain-hacking-101', 'size': '1719'}