<jupyter_start><jupyter_text>flavio: a Python package for flavour phenomenology & moreA tutorial  (by <NAME>)- `flavio` docs: https://flav-io.github.io- `flavio` source: https://github.com/flav-io/flavio- This tutorial: https://github.com/DavidMStraub/flavio-tutorial  Preliminary remarks- You can run this entire tutorial presentation with live code execution in your browser by navigating to - This is made possible by a number of great projects:    - [Jupyter](http://jupyter.org/)    - [Binder](https://mybinder.org/)    - [reaveal.js](https://revealjs.com/)    - [RISE](https://github.com/damianavila/RISE)  Navigating the slides- PgUp or Space: next slide- PgDn or Shift + Space: previous slide- w: overview mode- Shift + Enter: execute cell- Enter: edit cell  flavio: what can it do for me? 1. Predictions- Standard Model predictions (with uncertainties) for a huge number of observables in flavour physics- Predictions in the presence of new physics (parametrized as Wilson coefficient values)- interface to model-specific Wilson coefficient calculators  2. Fits- Fit parameters (e.g. CKM parameters) or Wilson  coefficients to existing experimental data- Bayesian or frequentist statistics- various fitters  & interfaces to external fitters  3. Plots- Visualize experimental measurements & theory predictions- Visualize your fit results  ShowcaseFrequentist & Bayesian fits of $V_{cb}$ in the SM ([arXiv:1801.01112](https://arxiv.org/abs/1801.01112))![](img/Vcb.svg) New physics in $b\to s\ell^+\ell^-$  ([arXiv:1703.09189](https://arxiv.org/abs/1703.09189))![](img/C9-C10_allExperiments.svg) SM vs. NP in $B\to D^*\ell\nu$ ([arXiv:1801.01112](https://arxiv.org/abs/1801.01112))![](img/CSL_q2.svg) For more papers using flavio (not only by flavio developers!), see  Ways of running flavio- interactively using Jupyter (or IPython)- as a script- on a supercomputer using parallelization (multithreading, MPI)- as a library in your own Python code  Installing flavio Setting up PythonTo install flavio, you need Python 3.5 or above as well as pip(press Shift + Enter to execute this cell):<jupyter_code>! python3 --version
! pip3 --version<jupyter_output><empty_output><jupyter_text>All set? If not, more options below  I don't have Python yet- Ubuntu 16.04 or newer:```bashsudo apt install python3 python3-pip```- MaC OS:```bashbrew install python3```NB: this will not interfere with your Python 2.7 installation!  I use Windowsor  I use an ancient Linux with Python 3.(x<5)&rarr; Use Anaconda/Miniconda  Using Miniconda- Anaconda is a Python distribution with its own package manager (`conda`)- It works on Linux, Mac OS, and Windows- Miniconda is the minimal version just installing Python, `conda`, and `pip`- Download the installer from   Installing the flavio packageThis is now as simple as:```bashpip3 install flavio --user```To upgrade to a new version, use```bashpip3 install flavio --user --upgrade```<jupyter_code>import flavio
flavio.__version__<jupyter_output><empty_output><jupyter_text>Installing extrasSome additional features of flavio have dependencies that are not installed by default. You can install all of them with```bashpip3 install flavio[plotting,testing,sampling]```Note that `sampling` installs packages that require `cython` and `numpy` to be installed first.  TestsIf you want to tests whether all features of flavio work on your system, you can run all of the unit tests of the package:<jupyter_code>! nosetests flavio<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.09919724770642202, 'fraction_numerical': 0.02264908256880734, 'mean_word_length': 5.025906735751295, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 14, 'https://': 9, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '3', 'dir': 'jupyter-structured-clean-dedup', 'id': '72887', 'license': 'MIT', 'n_tokens_mistral': 1123, 'n_tokens_neox': 1001, 'n_words': 407, 'path': '1 Installation.ipynb', 'repo_name': 'DavidMStraub/flavio-tutorial', 'size': '3497'}