module documentation

Notebook Session HTML templates

Copyright 2017-2025, Voxel51, Inc.

Constant SCREENSHOT_COLAB Undocumented
Constant SCREENSHOT_COLAB_SCRIPT Undocumented
Constant SCREENSHOT_DATABRICKS Undocumented
Constant SCREENSHOT_DATABRICKS_SCRIPT Undocumented
Constant SCREENSHOT_DIV Undocumented
Constant SCREENSHOT_HTML Undocumented
Constant SCREENSHOT_SCRIPT Undocumented
Constant SCREENSHOT_STYLE Undocumented
SCREENSHOT_COLAB: str = (source)

Undocumented

Value
'''
<style>
{{ style }}
</style>
<div id="focontainer-{{ subscription }}" style="display: none;">
   <div id="fooverlay-{{ subscription }}">
      <button id="foactivate-{{ subscription }}" >Activate</button>
...
SCREENSHOT_COLAB_SCRIPT: str = (source)

Undocumented

Value
'''
(() => {
    google.colab.kernel.proxyPort({{ port }}, {
        \'cache\': true
    }).then((baseURL) => {
        const url = new URL(baseURL);
        url.searchParams.set(\'context\', \'colab\');
...
SCREENSHOT_DATABRICKS = (source)

Undocumented

Value
Template(('''
<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel="preload" href="https://fonts.googleapis.com/css2?family=Palanquin
&display=swap" as="font" type="font/woff" crossorigin>
    <meta charset="UTF-8" />)
...
SCREENSHOT_DATABRICKS_SCRIPT: str = (source)

Undocumented

Value
'''
   (function() {
     var container = document.getElementById("focontainer-{{ subscription }}");
     var overlay = document.getElementById("fooverlay-{{ subscription }}");
     var params = new URLSearchParams(window.location.search)
     var proxy = params.get("proxy");
     var url = new URL(window.location.toString());
...
SCREENSHOT_DIV: str = (source)

Undocumented

Value
'''
<div id="focontainer-{{ subscription }}">
   <div id="fooverlay-{{ subscription }}" style="display: none;">
      <button id="foactivate-{{ subscription }}" >Activate</button>
   </div>
   <img src=\'{{ image }}\' style="width: 100%; max-width: {{ max_width }}px;"/>
</div>
...
SCREENSHOT_HTML = (source)

Undocumented

Value
Template(('''
<style>%s</style>
%s
<script type="text/javascript">%s</script>
''' % (SCREENSHOT_STYLE, SCREENSHOT_DIV, SCREENSHOT_SCRIPT)))
SCREENSHOT_SCRIPT: str = (source)

Undocumented

Value
'''
   (function() {
     var container = document.getElementById("focontainer-{{ subscription }}");
     var overlay = document.getElementById("fooverlay-{{ subscription }}");
     fetch(`{{ url }}fiftyone`)
     .then(() => {
        overlay.addEventListener("click", () => {
...
SCREENSHOT_STYLE: str = (source)

Undocumented

Value
'''
@import url("https://fonts.googleapis.com/css2?family=Palanquin&display=swap");

body, html {
  margin: 0;
  padding: 0;
  width: 100%;
...