Overwrite ( bool, optional) – Whether to allow an existing hook to be overwritten by a new Show_app ( app, # the Bokeh Application to display state, # current bokeh.io "state" notebook_url, # URL to the current active notebook page ** kw # any backend-specific keywords passed as-is ) Will be called with the following arguments: If the name has previously been installed, a RuntimeError willĪ function for loading BokehJS in a notebook type. This function is primarily of use to developers wishing to integrate BokehĪ name for the notebook type, e.e. Provides a mechanism for other projects to instruct Bokeh how to display Other kinds of notebooks in use by different communities. install_notebook_hook ( notebook_type : Literal, load : Load, show_doc : ShowDoc, show_app : ShowApp, overwrite : bool = False ) → None #īokeh comes with support for Jupyter notebooks built-in. It is recommended to use the default fixed sizing mode. Each plot will resultįilename ( str, optional) – filename to save document under (default: None)Īspect ratios. export_svgs ( obj : UIElement | Document, *, filename : str | None = None, width : int | None = None, height : int | None = None, webdriver : WebDriver | None = None, timeout : int = 5, state : State | None = None ) → list #Įxport the SVG-enabled plots within a layout. The list of filenames where the SVGs files are saved. Obj ( UIElement object) – a Layout (Row/Column), Plot or Widget object to display foo/myplot.py will create /foo/myplot.svg) Parameters : If the filename is not given, it is derived from the script name export_svg ( obj : UIElement | Document, *, filename : PathLike | None = None, width : int | None = None, height : int | None = None, webdriver : WebDriver | None = None, timeout : int = 5, state : State | None = None ) → list #Įxport a layout as SVG file or a document as a set of SVG files. Responsive sizing_modes may generate layouts with unexpected size andĪspect ratios. If you would like to access an Image object directly, rather than save aįile to disk, use the lower-level get_screenshot_as_png() The filename where the static file is saved. State ( State, optional) – A State object. Timeout ( int) – the maximum amount of time (in seconds) to wait forīokeh to initialize (default: 5) (Added in 1.1.1). Webdriver ( selenium.webdriver) – a selenium webdriver instance to use Height ( int) – the desired height of the exported layout obj only if Width ( int) – the desired width of the exported layout obj only if str, Path, optional) – filename to save document under (default: None) Obj ( UIElement or Document) – a Layout (Row/Column), Plot or Widgetįilename ( PathLike, e.g. foo/myplot.py will create /foo/myplot.png) Parameters : ![]() If the filename is not given, it is derived from the script name (e.g. Return type :ĭocument export_png ( obj : UIElement | Document, *, filename : PathLike | None = None, width : int | None = None, height : int | None = None, webdriver : WebDriver | None = None, timeout : int = 5, state : State | None = None ) → str #Įxport the UIElement object or document as a PNG. Return the document for the current default state.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |