is_notebook¶
- is_notebook()[source]¶
Detect if the current environment is a Jupyter notebook.
- Based on a method posted on StackOverflow:
Question at https://stackoverflow.com/questions/15411967
Question by Christoph (https://stackoverflow.com/users/498873/christoph)
Answer by Gustavo Bezerra (https://stackoverflow.com/users/2132753/gustavo-bezerra)
- Returns:
True if the current environment is a Jupyter notebook, False otherwise.
- Return type: