class_docstr: Base class for representing Bokeh custom model implementations that may
  be given as inline code in some language.
  
  Args:
      code (str) :
          The source code for the implementation
  
      file (str, optional)
          A file path to a file containing the source text (default: None)
class_docstr_tok: ["Base","class","for","representing","Bokeh","custom","model","implementations","that","may","be","given","as","inline","code","in","some","language",".","Args",":","code","(","str",")",":","The","source","code","for","the","implementation","file","(","str",",","optional",")","A","file","path","to","a","file","containing","the","source","text","(","default",":","None",")"]
code: def __init__(self, code: str, file: str | None = None) -> None:
      self.code = code
      self.file = file
  
imports: from __future__ import annotations
  import logging
  import hashlib
  import json
  import os
  import re
  import sys
  from os.path import abspath, dirname, exists, isabs, join
  from pathlib import Path
  from subprocess import PIPE, Popen
  from typing import Any, Callable, Sequence
  from ..core.has_props import HasProps
  from ..settings import settings
  from .strings import snakify
label_desc: Use image node_id 1 to create a new Inline object from inherited base classes: Implementation with example: obj = Inline(code, file)