Tableau Public Integration with Jupyter Notebook

A way to embed Tableau visualizations to Jupyter Notebook

Andrei Teleron
2 min readMar 20, 2020
Photo by William Iven on Unsplash

If you have an account with Tableau Public and have a few vizzes uploaded there already, go ahead and:

  1. Log in to your profile at https://public.tableau.com/s/
  2. Click one of your vizzes
  3. Click the share button on the Tableau banner underneath the viz
Share button highlighted in green

4. Copy the Embed Code.

5. Go to an empty code cell in Jupyter Notebook and type: %%html. On a new line in the same cell, paste the Embed Code. It should look something like this:

%%html
<div class='tableauPlaceholder' id=...

Your viz should now be embedded in Jupyter Notebook!

If you’re planning to post on Github, sometimes the tableau visualizations won’t show up on there. A quick way to load them is to copy your notebook’s link on Github and paste the URL to Jupyter’s nbviewer.

--

--

Andrei Teleron

Would like to empower others in their learning journey. Interested in reading, web design, coffee, nature, and doing cool things with family and friends.