Open bigbitbus opened 6 years ago
I have the same problem trying to run in in Google Colab.
For Colab it should be sufficient to just do
!jupyter nbextension install datalab.notebook
But that should not be needed to use the Python code.
@blois if I run this command without --py
option, I get a No such file or directory: u'datalab.notebook'
error. If I run it with --py
I get the same message as the OP posted, saying that I have to enable this extension and then I run
!jupyter nbextension enable datalab.notebook --py
and get the same KeyError: 'require'
error.
Here is an example notebook: https://colab.research.google.com/drive/1Vii3jmQq2uqnmqS1DBvuY2qky28fzRKi
Colab does not load nbextensions at startup so nbextension enable will have no effect there.
Is there something in particular that you are trying to do?
I'm just trying to load the datalab extension/library to use the %%bq
magic.
Is it possible to use this pydatalab library in Jupyter in general and in Colab in particular without all the special Datalab runtime? (I'm new to all this stuff, so I wouldn't be surprised if my question doesn't make sense)
An alternative is to use the %%bigquery
magic from google.cloud.bigquery.
This will work in Jupyter and Colab.
An example in Colab is https://colab.research.google.com/notebooks/bigquery.ipynb
Well, thanks, but this thing is very primitive compared to the %%bq
from datalab. The main feature I miss is creating named queries with subqueries dependencies.
Well, thanks, but this thing is very primitive compared to the
%%bq
from datalab. The main feature I miss is creating named queries with subqueries dependencies.
Agree, whilst the google.cloud.bigquery library has some advantages, the magics are substantially inferior.
Hello,
I am trying to install the jupyter extension based on the instructions in the README file; the installation works, but running the "enable" command is failing with the error trace shown below. What may I be missing?