I am using the bigquery magic function in Jupyter and would like to be able to dynamically change the project and dataset. For example
Instead of
%%bigquery table
SELECT * FROM `my_project.my_dataset.my_table`
I want
project = my_project
dataset = my_dataset
%%bigquery table
'SELECT * FROM `{}.{}.my_table`'.format(project,dataset)
According to the IPython Magics for BigQuery documentation is not possible to pass the project nor the dataset as parameters; nonetheless, you can use the BigQuery client library to perform this action in Jupyter Notebook.
I also recommend you to take a look in public documentation to know how to visualize BigQuery data in a Jupyter notebooks.