code
stringlengths 3
6.57k
|
|---|
logging.getLogger()
|
root_logger.setLevel(logging.INFO)
|
logging.getLogger('bokeh_root_cmd')
|
__init__(self, prefix='')
|
__del__(self)
|
self.html_file.close()
|
_get_default_index_html(self)
|
str(pathlib.Path(bokeh.server.views.__file__)
|
_get_index_html(self)
|
prefix (e.g. /user/dan/dash-test)
|
PanelNotebook
(so accessible at /user/dan/dash-test/PanelNotebook behind the cdsdashboards reverse proxy)
|
hasattr(self, 'html_file')
|
tempfile.NamedTemporaryFile("wt", suffix='.html')
|
open(self._get_default_index_html()
|
f.readlines()
|
re.sub(r'\{\{\s*prefix\s*\}\}', self.prefix, r)
|
self.html_file.write(r)
|
self.html_file.flush()
|
self._get_default_index_html()
|
_get_server_class()
|
_make_app(command: str, url: str = "/", debug: bool = False)
|
os.getcwd()
|
os.path.join(os.getcwd()
|
os.path.isdir(app_py_path)
|
os.path.dirname(app_py_path)
|
logger.debug("Fetching folder {}".format(app_py_path)
|
logger.debug("Fetching script {}".format(app_py_path)
|
os.path.isdir(dirname)
|
logger.debug("Changing working dir to {}".format(dirname)
|
os.chdir(dirname)
|
build_single_handler_application(app_py_path, [url])
|
os.chdir(cwd_original)
|
logger.debug("Changing working dir back to {}".format(cwd_original)
|
_is_single_app(cls, cmd: str)
|
pathlib.Path(cmd)
|
cmd_path.is_file()
|
or (cmd_path / "main.py")
|
is_file()
|
or (cmd_path / "main.ipynb")
|
is_file()
|
_get_applications(cls, command: Tuple[str], debug=False)
|
len(command)
|
cls._is_single_app(command[0])
|
cls._make_app(command[0], debug)
|
cls._is_single_app(cmd)
|
pathlib.Path(cmd)
|
list(cmd_path.glob("*.ipynb")
|
list(cmd_path.glob("*.py")
|
cls._make_app(singlecmd, debug)
|
url_path()
|
_get_server_kwargs(self, port, ip, allow_websocket_origin, is_single_app)
|
list(allow_websocket_origin)
|
self._get_index_html()
|
logger.debug("Using HTML template %s", index_html)
|
run(self, port, ip, debug, allow_websocket_origin, prefix, command)
|
logger.info("Starting %s", type(self)
|
root_logger.setLevel(logging.DEBUG)
|
logger.debug("ip = %s", ip)
|
logger.debug("port = %s", port)
|
logger.debug("debug = %s", debug)
|
logger.debug("allow_websocket_origin = %s", allow_websocket_origin)
|
logger.debug("prefix = %s", prefix)
|
logger.debug("command = %s", command)
|
self._get_applications(command, debug)
|
create_ready_app()
|
logger.debug("applications = %s", list(applications.keys()
|
self._get_server_kwargs(port, ip, allow_websocket_origin, len(applications)
|
logger.debug("server_kwargs = %s", server_kwargs)
|
self._get_server_class()
|
server.run_until_shutdown()
|
PanelServer(BokehServer)
|
_get_server_class()
|
_get_default_index_html(self)
|
click.command()
|
click.option("--port", default=8888, type=click.INT, help="port for the proxy server to listen on")
|
click.option("--ip", default=None, help="Address to listen on")
|
click.option("--debug/--no-debug", default=False, help="To display debug level logs")
|
click.argument("command", nargs=-1, required=True)
|
run(port, ip, debug, allow_websocket_origin, server, prefix, command)
|
PanelServer(prefix)
|
BokehServer(prefix)
|
_root_handler_initialize_without_ready_check(self, *args, **kw)
|
copy()
|
pop("/ready-check")
|
run()
|
logger.error("Caught SystemExit {}".format(se)
|
IsStaffPermission(BasePermission)
|
has_permission(self, request, view)
|
InvoiceFilter(filters.FilterSet)
|
filters.CharFilter(name='order__customer__username', lookup_expr='icontains')
|
filters.CharFilter(name='order__customer__first_name', lookup_expr='icontains')
|
filters.DateTimeFilter(name='created_at', lookup_expr='gte')
|
filters.DateTimeFilter(name='updated_at', lookup_expr='gte')
|
InvoiceViewSet(viewsets.ModelViewSet)
|
Invoice.objects.all()
|
pytest.mark.parametrize('DataSetType', [DataSet, PandasDataSet])
|
test_add_obs(DataSetType)
|
DataAttribute(id='OBS_STATUS')
|
AttributeValue(value_for=obs_status, value='A')
|
enumerate([5, 6, 7])
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.