Skip to content
This repository has been archived by the owner on Oct 11, 2020. It is now read-only.

Healthbot REST calls with Jupyter notebook

Khelil Sator edited this page Feb 10, 2019 · 5 revisions

About Jupyter notebook

Jupyter Notebook is an open-source web application that allows you to create and share documents that contains live code.
This repository has a notebook healthbot.ipynb that contains a basic healthbot REST API demo using live python code (using the python module requests).

Install Jupyter notebook

Install pip3

$ sudo apt-get install python3-pip

Install Jupyter

$ pip3 install jupyter

Verify

$ pip3 list | grep jupyter
jupyter                            1.0.0      
jupyter-client                     5.2.3      
jupyter-console                    5.2.0      
jupyter-core                       4.4.0      
$ jupyter --version
4.4.0

install the requests python library

This repository has a notebook healthbot.ipynb that contains live python code making rest calls to healthbot (using the python module requests).

run this command on ubuntu to install the requests python library

$ pip install requests

How to start the notebook server

To start the notebook server from the command line, run this command

$ jupyter notebook

To open a specific Notebook, run this command

$ jupyter notebook notebook.ipynb

By default, the notebook server starts on port 8888
It opens your default web browser.
You should see the notebook notebook.ipynb open in your default browser.

Start the notebook server with the notebook healthbot.ipynb

$ ls | grep healthbot.ipynb
$ jupyter notebook healthbot.ipynb

It opens your default web browser.
You should see the notebook healthbot.ipynb opened in your default browser.
It contains live python code making rest calls to healthbot (using the python module requests).

Clone this wiki locally