From the course: Advanced BigQuery

Unlock this course with a free trial

Join today to access over 24,500 courses taught by industry experts.

Connecting to BigQuery with Python

Connecting to BigQuery with Python - BigQuery Tutorial

From the course: Advanced BigQuery

Connecting to BigQuery with Python

- We will now build a small Python application which will make use of a Python client for BigQuery in order to connect to and then run a query against a table. You'll note that I'm currently inside a workspace directory which I have created on my machine, which is under my Desktop Advanced BigQuery/BQQueries. Here, I'm going to pull up my Python IDE of choice. This is a Jupyter notebook, which is a web based IDE, which allows us to build Python applications in a REPL Environment. Once Jupyter notebook has been launched it should have opened up this workspace directory in our default browser. Or we can simply copy over this URL, which appears here along with the token, and then paste it in a browser. Here, we are taken over to the workspace folder from which we launch Jupyter notebooks. This is currently empty and now to create a new notebook we head over to new and choose a Python Kernel. I have one for Python 3. Once this…

Contents