How to Solve NameError: name 'NotionClient' is not defined -- notion

Solution: Import the 'NotionClient' module

To Solve the error, add the following line to the top of your code.

from notion.client import NotionClient

 

For more information:
Python notion NotionClient