check port in use and add itself

This commit is contained in:
zhiiw 2022-12-06 20:51:48 +08:00
parent d2de601b7b
commit 6b69fe3222

View File

@ -13,18 +13,19 @@ from ..errors import Errors, Warnings
from ..util import is_in_jupyter
from ..util import is_port_in_use
_html = {}
RENDER_WRAPPER = None
def render(
docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict],
style: str = "dep",
page: bool = False,
minify: bool = False,
jupyter: Optional[bool] = None,
options: Dict[str, Any] = {},
manual: bool = False,
docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict],
style: str = "dep",
page: bool = False,
minify: bool = False,
jupyter: Optional[bool] = None,
options: Dict[str, Any] = {},
manual: bool = False,
) -> str:
"""Render displaCy visualisation.