bokeh / tutorial

Notebooks and presentation materials for Bokeh tutorials

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bokeh tutorial notebooks

Binder

This repository contains a series of Jupyter notebooks. These notebooks are available as an interactive tutorial at https://mybinder.org/v2/gh/bokeh/tutorial/main?filepath=notebooks%2F01_introduction.ipynb

To learn about Bokeh, please use the tutorial on mybinder.org.

You can also install and run the notebooks on a local machine. This is helpful if you can't access mybinder.org, or if you want to contribute to this tutorial.

Setup with Nebari for Scipy 2023

This tutorial is being presented live at SciPy 2023, where you can use Nebari (JupterHub) hosted at scipy.quansight.dev to follow along.

Follow this participant's guide to register and sign-in at, and use the following link to clone the tutorial materials:

https://github.com/bokeh/tutorial.git

In the tutorial folder that's created with all material, navigate to the notebooks folder, and open 01_introduction.ipynb.

The environment for this tutorial is global-global-interactive-dataviz-bokeh, and it is automatically selected for you.

Local setup

Follow these steps to run the tutorial notebooks on your local machine:

  1. To run the tutorial locally, first clone this repository to your local machine. For example:

    git clone git@github.com:bokeh/tutorial.git
  2. After cloning the repository, enter the folder that contains the repository contents:

    cd tutorial
  3. Next, you need to set up your environment. This tutorial uses the conda package manager. Please make sure conda or Miniconda are installed and configured correctly on your system.

    Run the following command inside your local repository folder to create your environment:

    conda env create -f environment.yml
  4. After the environment is set up, activate it with the following command:

    conda activate bk-tutorial
  5. Before opening the tutorial notebooks, you need to install the Bokeh sampledata. Make sure the bk-tutorial environment is activated, then run the following command:

    bokeh sampledata
  6. From inside the bk-tutorial environment, you can now start the Jupyter notebook server:

    jupyter notebook
  7. After opening Jupyter notebooks in a browser, go to the folder notebooks. Open the first notebook in this folder. It is called 01_introduction.ipynb.

Contributing to this tutorial

Thank you for helping to make this tutorial a better resource for everyone!

Everyone active in the Bokeh project’s codebases, issue trackers, and discussion forums is expected to follow the Code of Conduct. This includes working on these tutorials!

Preparing your environment

The bk-tutorial environment includes the necessary dependencies to contribute to this repository. The only exception if pre-commit, which you can install with the following command (after activating the bk-tutorial environment):

pre-commit install

This way, some basic linting will be run on your code before you commit it.

For consistency, we ask that you generally follow the Black code style wherever possible.

Making changes

Contributing to this tutorial repository works similarly to contributing to Bokeh itself:

  1. Open an issue in the issue tracker of this repository
  2. Make PR and link it to the issue you created

Once you have created a pull request, a member of the Bokeh core team will begin reviewing your pull request and may request changes or additions. If so, they will help you along the way with any questions you may have.

About

Notebooks and presentation materials for Bokeh tutorials

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:Jupyter Notebook 94.0%Language:Python 6.0%