|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 14-Dec-2021 | - |
| algorithms/ | H | 14-Dec-2021 | - | 282 | 280 |
| constraint_solver/ | H | 14-Dec-2021 | - | 8,826 | 8,794 |
| contrib/ | H | 14-Dec-2021 | - | 29,948 | 29,817 |
| examples/ | H | 14-Dec-2021 | - | 15,637 | 15,594 |
| graph/ | H | 14-Dec-2021 | - | 787 | 782 |
| linear_solver/ | H | 14-Dec-2021 | - | 2,498 | 2,485 |
| sat/ | H | 14-Dec-2021 | - | 5,620 | 5,586 |
| README.md | H A D | 14-Dec-2021 | 1 KiB | 36 | 28 |
README.md
1# Introduction
2First and foremost, the Jupyter Notebook is an interactive environment for writing and running code.
3
4# Prerequisite: Python3
5These notebooks are associated with the IPython3 kernel, therefore runs Python3 code.
6Thus, to run these notebooks you'll need Python3 and python ortool package.
7
8Once you have python3 installed, ensure you have the latest pip:
9```sh
10pip3 install --user --upgrade pip
11```
12note: on Ubuntu you can also use: `apt-get install python3-pip`
13
14# Installing Jupyter
15Install Jupyter Notebook using:
16```sh
17pip3 install --user jupyter
18```
19
20Then install our notebooks dependencies:
21```sh
22pip3 install --user plotly numpy svgwrite
23```
24
25# Running the Notebooks
26To run the notebook, run the following command at the Terminal (Mac/Linux) or Command Prompt (Windows):
27```sh
28jupyter notebook
29```
30You should see the notebook dashboard open in your browser.
31
32Then go to your or-tools source directory and try to open a notebook (located in
33examples/notebook).
34
35note: You can run a code cell using Shift-Enter or pressing the `>|` button in the toolbar.
36