- spaCy Tutorial
- spaCy - Home
- spaCy - Introduction
- spaCy - Getting Started
- spaCy - Models and Languages
- spaCy - Architecture
- spaCy - Command Line Helpers
- spaCy - Top-level Functions
- spaCy - Visualization Function
- spaCy - Utility Functions
- spaCy - Compatibility Functions
- spaCy - Containers
- Doc Class ContextManager and Property
- spaCy - Container Token Class
- spaCy - Token Properties
- spaCy - Container Span Class
- spaCy - Span Class Properties
- spaCy - Container Lexeme Class
- Training Neural Network Model
- Updating Neural Network Model
- spaCy Useful Resources
- spaCy - Quick Guide
- spaCy - Useful Resources
- spaCy - Discussion
spaCy - Util.is_in_jupyter
This utility function is used to check whether, we are running the spacy from a Jupyter notebook or not. It is done by detecting the IPython kernel. This utility function is mainly used for the displaCy visualizer.
Example
An example of util.is_in_jupyter() function is as follows:
import spacy info = "<h1>This is Tutorialspoint.com!</h1>" if spacy.util.is_in_jupyter(): from IPython.core.display import display, HTML display(HTML(info))
Output
You will see the following output −
This is Tutorialspoint.com!
spacy_util_get_data_path.htm
Advertisements
To Continue Learning Please Login
Login with Google