You must have Anaconda and Jupyter Lab installed and be running Python >= 3.7 to run this dashboard.
-
Set up a new Anaconda environment called
pyvizenv
.conda update anaconda conda create -n pyvizenv python=3.7 anaconda -y conda activate pyvizenv
-
Install environment dependencies.
pip install python-dotenv pip install numpy==1.19 pip install matplotlib==3.0.3 conda install -c conda-forge nodejs=12 -y conda install -c pyviz holoviz -y conda install -c plotly plotly -y conda install -c conda-forge jupyterlab=2.2 -y
-
Install the Jupyter Lab extensions.
jupyter labextension install @jupyter-widgets/jupyterlab-manager --no-build jupyter labextension install jupyterlab-plotly --no-build jupyter labextension install plotlywidget --no-build jupyter labextension install @pyviz/jupyterlab_pyviz --no-build
-
Build the Extensions.
jupyter lab build
-
Ensure the successful installation of the dependencies by finding them in Anaconda.
conda list nodejs conda list holoviz conda list hvplot conda list panel conda list plotly
-
You will need a MapBox API key to get map data. If you don't have a MapBox API key, here are instructions on how to get one and set it up as an environment variable.
-
Run all cells in Jupyter and view the dashboard in the browser by executing the final cell
dashboard.servable()
.
Use the map plot to get a birdseye view of the cost of Toronto neighbourhoods. The larger and brighter the dot, the more expensive the neighbourhood. This plot indicates that the most expensive neighbourhoods are near the downtown area.
The sum number of dwelling type units per year. Dwelling values (represented by the bars) change as the years go on, indicating which dwelling types gained or lost popularity.
Comparing the cost of owning a dwelling versus renting one. Notice that although owning a house has been more expensive, the value of houses over doubled.
Use the dropdown menus to look at data for individual neighbourhoods. The data varies widely between each neighbourhood.
The average house value in each neighbourhood within each time period. Hover over the bars to view more info.
The top 10 expensive neigbourhoods to live in overall between 2001 and 2016.
This sunburst chart displays the top 10 expensive neighbourhoods to live in between 2001 and 2016. Darker colours indicate higher value.