REPOSITORY TAG IMAGE ID
fastdotai/fastai-course latest 020ece1e8fca
The notebook notebooks/fastbook/09_tabular.ipynb produces an error when running the cell
#hide
from fastbook import *
from kaggle import api
from pandas.api.types import is_string_dtype, is_numeric_dtype, is_categorical_dtype
from fastai.tabular.all import *
from sklearn.ensemble import RandomForestRegressor
from sklearn.tree import DecisionTreeRegressor
from dtreeviz.trees import *
from IPython.display import Image, display_svg, SVG
pd.options.display.max_rows = 20
pd.options.display.max_columns = 8
... the error:
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/tmp/ipykernel_126/1277492647.py in <module>
1 #hide
2 from fastbook import *
----> 3 from kaggle import api
4 from pandas.api.types import is_string_dtype, is_numeric_dtype, is_categorical_dtype
5 from fastai.tabular.all import *
/opt/conda/lib/python3.8/site-packages/kaggle/__init__.py in <module>
21
22 api = KaggleApi(ApiClient())
---> 23 api.authenticate()
/opt/conda/lib/python3.8/site-packages/kaggle/api/kaggle_api_extended.py in authenticate(self)
162 config_data = self.read_config_file(config_data)
163 else:
--> 164 raise IOError('Could not find {}. Make sure it\'s located in'
165 ' {}. Or use the environment method.'.format(
166 self.config_file, self.config_dir))
OSError: Could not find kaggle.json. Make sure it's located in /root/.kaggle. Or use the environment method.
I'm running the following Docker container:
The notebook
notebooks/fastbook/09_tabular.ipynb
produces an error when running the cell... the error: