This repository goal is to help you connect to the EPFL datasources available through the tableau API.
Several Notebooks are available:
- The personal_access_token.ipynb notebook allows to access all the data available to your personal account. It is the preferred option but requires a bit of configuration.
- The public_jwt.ipynb notebook allows to access public data with a minimal configuration.
- The direct_trust_jwt.ipynb notebook should only be used if you requested access through a service account to the ISCS-BI team, and a specific configuration has been given to you.
You can run the appropriate notebook either directly on noto.epfl.ch or locally after setting up the chosen system as described below.
- Login in noto.epfl.ch.
- Open a terminal (File > New > Terminal)
- Create a new virtual environment called tableau_api and activate it.
my_venvs_create tableau_api my_venvs_activate tableau_api
- Install the requirements
pip install -r requirements.txt
- Create a new kernel called "tableau_api" and displayed as "Tableau API":
my_kernels_create tableau_api "Tableau API" my_venvs_deactivate - Reload the webpage.
- Click on the link corresponding to the appropriate Notebook below to clone the tableau-api repository and open the right notebook directly:
-
Install python3 and the venv module.
On an Ubuntu/Debian system it is done with:
sudo apt-get install python3 python3-venv
-
Clone the tableau-api repository and go into the cloned directory
git clone https://github.com/epfl-si/tableau_api.git $HOME/tableau_api cd $HOME/tableau_api
-
Create a new virtual environment and activate it:
python -m venv tableau_api_venv source tableau_api_venv/bin/activate -
Install the requirements
pip install -r requirements.txt
-
Activate the virtual environment if not done already:
cd $HOME/tableau_api source tableau_api_venv/bin/activate
-
Start the Notebook Server:
jupyter notebook
-
This will print some information about the notebook server in your terminal, including the URL of the web application (by default, http://localhost:8888).
It will then open your default web browser to the Notebook Dashboard at this URL.
-
Select the appropriate Notebook in the Notebook Dashboard.