<jupyter_start><jupyter_text>Jupyter notebooksHow does it work? > The Jupyter Notebook is a web application that allows you to create and share documents that contain live code, equations, visualizations and explanatory text. Uses include: data cleaning and transformation, numerical simulation, statistical modeling, machine learning and much more. - http://jupyter.org/     The Jupyter projectJupyter is an open source project* Written in python* Kernels enable connectivity to other languagesDependencies* The kernel and target languages communicates using ZeroMQ message queuing engineInstallation* An easy way to get Jupyter is to install the Anaconda distribution  ZeroMQ![](images/02_Jupyter the inner workings/zeromq.png)  How does Jupyter work?  How does Jupyter work with R?  IRKernel* IRKernel is the most widely used kernel* This communicates between R and ZeroMQ  Installing JupyterSeveral kernels exist for R. The most widely used is IRKernel* https://irkernel.github.io/Installation of the IRKernel<jupyter_code># install.packages(
#  c('rzmq','repr','IRkernel','IRdisplay'), 
#  repos = c('http://irkernel.github.io/', 
#          getOption('repos'))
#)<jupyter_output><empty_output><jupyter_text>Connect R to IRKernel<jupyter_code># IRkernel::installspec()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07751343054489639, 'fraction_numerical': 0.0015349194167306216, 'mean_word_length': 5.8994708994708995, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 10, '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': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '191996', 'license': 'MIT', 'n_tokens_mistral': 383, 'n_tokens_neox': 365, 'n_words': 139, 'path': '02_Jupyter notebooks - the inner workings.ipynb', 'repo_name': 'michhar/useR2016-tutorial-jupyter', 'size': '1303'}