Skip to content

Package does not work in Jupyter/iPython Notebooks #16

@bmcleod3356

Description

@bmcleod3356

Hi, thanks for this great package, it's very useful.

One trap for beginners is that it does not appear to work in a notebook environment, and this isn't documented.

I initially had a lot of trouble getting it working, and couldn't run sample code from the documentation, receiving a bunch of relatively opaque error messages:

  • Asyncio issues (which can be fixed using nest-asyncio in the notebook)
  • Once that is fixed, valid API calls still return a 403 – Forbidden error.

All these issues were resolved when I switched to a normal .py file. It would be great if this can be added to the github page and documentation, as otherwise the errors will trip up people who find the package and try to tinker in a notebook (which is pretty commonplace for data focused python users).

For completeness – I am using Python 3.12.11 and jupyter notebooks within VS Code.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationgood first issueGood for newcomers

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions