Search code examples
google-bigqueryjupyter-notebookgoogle-cloud-datalab

google datalab chart cell magic does not work in local jupyter notebook


I want to make some nice charts like you can see here or here.

Normal Querying via %%bq -n data works fine.

I installed datalab like described.

If i try to make a chart with this %chart line -d data -f field1,field2 logic, something happens, but no plot appears.


Solution

  • The solution is not mentioned in the "Using in Jupyter" section in the installation readme, but on another wiki page I found: Jupyter Kernel and Notebook Extensions .

    It's, to install a nbextension:

    jupyter nbextension install --py datalab.notebook --sys-prefix
    

    That worked fine for me.