Explore runnable examples for popular Python packages — open any example and run it instantly in your browser.
Run Altair code in your browser. Make bar, line and scatter charts and histograms from pandas data, with tooltips and selections.
View example →Run Biopython code in your browser. Reverse-complement and translate DNA, parse FASTA and score pairwise alignments.
View example →Make Bokeh plots in your browser. Scatter, line and bar charts, hover tooltips, linked layouts and standalone HTML files.
View example →Run Bokeh app code in your browser. Connect sliders, dropdowns and buttons to Python callbacks that update plots and tables.
View example →Split pandas and NumPy work into chunks with Dask in your browser: lazy DataFrames, many CSV files at once, chunked arrays and delayed functions.
View example →Turn Python code into Word (.docx) documents in your browser, with headings, formatted text, tables and pictures.
View example →Run DuckDB SQL queries in your browser. Query CSV files and pandas DataFrames, join tables, save a database and export to Parquet.
View example →Generate fake names, emails, addresses and dates in your browser, with seeds, locales, pandas DataFrames and custom values.
View example →Read and write files with Python in your browser: write and read text, append lines, save CSV and JSON, and list or delete files.
View example →Make web maps in your browser, with markers and popups, lines and circles, GeoJSON layers, choropleths and heat maps.
View example →Run GeoPandas code in your browser. Read shapefiles, build points from coordinates, reproject, join by location and map.
View example →Run getpass code in your browser. Ask for a password or API key, confirm a new password and get the user name.
View example →Build dashboards with HoloViews and Panel in your browser: dropdowns that pick what to plot, sliders that filter points and auto-made widgets.
View example →Run igraph code in your browser. Build graphs, find shortest paths, rank vertices by centrality, find communities and plot them.
View example →Ask for user input with Python's input() in your browser: convert answers to numbers, ask again after a bad answer and read several values.
View example →Train gradient-boosted models with LightGBM in your browser: regression, classification, early stopping, category columns and feature importance.
View example →Run Matplotlib code in your browser. Draw line, bar and scatter charts, add legends, combine subplots and save figures as PNG.
View example →Run NetworkX code in your browser. Build graphs, find shortest paths, rank nodes by centrality, find communities and draw them.
View example →Run NumPy code in your browser. Create and reshape arrays, filter values, compute statistics and solve linear systems.
View example →Run OpenAI Python code in your browser. Call the Responses API, continue a conversation and get structured output.
View example →Run OpenCV (cv2) code in your browser. Convert colours, blur, detect edges, draw shapes, find contours, resize and rotate images.
View example →Read, edit and create Excel (.xlsx) files from Python in your browser, with formulas, styles and charts.
View example →Run pandas code in your browser. Build DataFrames, filter and sort rows, group and aggregate data, and read and write CSV files.
View example →Run Panel code in your browser. Build apps with sliders, dropdowns and buttons that update tables, charts and numbers.
View example →Run Pillow code in your browser. Draw shapes and text, resize, crop and rotate images, apply filters and convert formats.
View example →Run Pingouin code in your browser. Run t-tests, ANOVA with post-hoc tests, correlations and assumption checks, with effect sizes.
View example →Run Plotly code in your browser. Make line, bar and scatter charts with Plotly Express, and build figures and subplots.
View example →Run Polars code in your browser. Filter and add columns, group and aggregate, join DataFrames and build lazy queries.
View example →Turn Python code into PowerPoint (.pptx) slides in your browser, with bullet points, tables, pictures and charts.
View example →Draw SVG charts with pygal in your browser: stacked bars, line and pie charts, custom colors, value labels and SVG files.
View example →Find slow code with pyinstrument in your browser: profile a block, read the call tree, look inside library calls and show time as percentages.
View example →Read and write YAML with PyYAML in your browser: safe_load versus load, value types, updating a file and multi-document streams.
View example →Parse web server logs with Python's re module in your browser: capture fields, name groups, count status codes and convert timestamps.
View example →Create PDF files from Python in your browser, with paragraphs, styled tables, charts, page numbers and canvas drawing.
View example →Run SciPy code in your browser. Solve linear systems, minimize functions, fit curves, compute integrals and run statistical tests.
View example →Run seaborn code in your browser. Draw scatter plots, histograms, box plots and heatmaps from pandas DataFrames.
View example →Run scikit-image code in your browser. Load sample images, filter and threshold them, count objects, resize and rotate them.
View example →Run scikit-learn code in your browser. Train classifiers and regressors, scale data in pipelines and tune models.
View example →Run SQLite queries with Python's sqlite3 module in your browser. Create tables, insert rows safely, filter, group and join.
View example →Run statsmodels code in your browser. Fit linear and logistic regressions, use R-style formulas and forecast with ARIMA.
View example →Run SymPy code in your browser. Solve equations and inequalities, simplify expressions, and find derivatives, integrals and limits.
View example →Run treelib code in your browser. Build and print trees, walk branches, move or remove subtrees and export to a dict or JSON.
View example →Analyze labeled multi-dimensional data with xarray in your browser: select by label, resample time series, take weighted means and save netCDF files.
View example →Train gradient-boosted tree models with XGBoost in your browser: regression, classification, early stopping, feature importance and missing values.
View example →Create Excel (.xlsx) files from Python in your browser, with formatting, formulas, charts and pandas DataFrames.
View example →