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_in_jupyter
from ..util import is_port_in_use from ..util import is_port_in_use
_html = {} _html = {}
RENDER_WRAPPER = None RENDER_WRAPPER = None
def render( def render(
docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict], docs: Union[Iterable[Union[Doc, Span, dict]], Doc, Span, dict],
style: str = "dep", style: str = "dep",
page: bool = False, page: bool = False,
minify: bool = False, minify: bool = False,
jupyter: Optional[bool] = None, jupyter: Optional[bool] = None,
options: Dict[str, Any] = {}, options: Dict[str, Any] = {},
manual: bool = False, manual: bool = False,
) -> str: ) -> str:
"""Render displaCy visualisation. """Render displaCy visualisation.