Skip to content

Note

Click here to download the full example code or to run this example in your browser via Binder

A short Python script

This demonstrates an example .py file that is not executed when gallery is generated (see Parsing and executing examples via matching patterns) but nevertheless gets included as an example. Note that no output is captured as this file is not executed.

# Code source: Óscar Nájera
# License: BSD 3 clause
from __future__ import print_function
print([i for i in range(10)])

Total running time of the script: ( 0 minutes 0.000 seconds)

Launch binder

Download Python source code: just_code.py

Download Jupyter notebook: just_code.ipynb

Gallery generated by mkdocs-gallery