Hide_banner ( bool, optional) – whether to hide the Bokeh banner (default: False) Verbose ( bool, optional) – whether to display detailed BokehJS banner (default: False) Resources ( Resource, optional) – How and where to load BokehJS from (default: CDN) Times in a single cell to display multiple objects in the output cell. output_notebook ( resources : Resources | None = None, verbose : bool = False, hide_banner : bool = False, load_timeout : int = 5000, notebook_type : NotebookType = 'jupyter' ) → None #Ĭonfigure the default output state to generate output in notebook cells This output file will be overwritten on every save, e.g., each time ![]() This value is ignored for other resource types, e.g. Root_dir ( str, optional) – root directory to use for ‘absolute’ resources. One of: 'inline', 'cdn', 'relative(-dev)' or Mode ( str, optional) – how to include BokehJS (default: 'cdn') Title ( str, optional) – a title for the HTML document (default: “Bokeh Plot”) Parameters :įilename ( str) – a filename for saving the HTML document Output may be active at the same time, so e.g., this does not clear theĮffects of output_notebook(). RuntimeError – If notebook_type is already installed and overwrite=False output_file ( filename : PathLike, title : str = 'Bokeh Plot', mode : ResourcesMode | None = None, root_dir : PathLike | None = None ) → None #Ĭonfigure the default output state to generate output savedĭoes not change the current Document from curdoc(). 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 Providing a higher resolution while maintaining element relative Scale_factor ( float, optional) – A factor to scale the output PNG by, 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, scale_factor : float = 1, 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. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |