GithubHelp home page GithubHelp logo

isabella232 / phoila Goto Github PK

View Code? Open in Web Editor NEW

This project forked from quansight/phoila

0.0 0.0 0.0 205 KB

License: BSD 3-Clause "New" or "Revised" License

Python 64.62% Smarty 0.66% TypeScript 29.77% JavaScript 0.59% CSS 1.71% HTML 2.65%

phoila's Introduction

phoila

Build Status codecov

A Phosphor wrapper for Voila, hence the name Pho(sphor) + (V)oila.

https://github.com/phosphorjs/phosphor/

https://github.com/Quantstack/voila

Installation

Install using pip:

pip install phoila

Add any lab extensions you need to phoila:

phoila install <lab-extension name> [<lab-extension name> ...]

(if you don't need any extensions, make sure to run phoila build instead)

Then run it:

phoila

Helpful config options

Since all kernels are one-to-one per dashboard, without any magic to automatically shut down kernels once the dashboard is closed, it can be helpful to configure automatic culling, by configuring MappingKernelManager.cull_idle_timeout to a value greater than 0. This can either be done on invocation --MappingKernelManager.cull_idle_timeout=300 or in a config file (phoila --generate-config).

Components

Phoila consists of the following parts:

  • An application entry point (phoila that points to phoila.app:main). This starts a server application, with the main handler on <base_url>/phoila. This page serves a custom JupyterLab/Phosphor app. It also adds other JupyterLab handlers to the app.
  • Subcommands for the application that install and remove extensions in the custom lab app. This includes phoila install <extension name>, phoila build, etc.
  • A custom server handler and lab extension for showing Voila templates. This includes a custom jupyter-widgets (ipywidgets) manager for rendering widgets. This view differs from the preview extension in Voila in the different dashboards aren't rendered in an iframe, so the static assets are shared across the different dashboards.

phoila's People

Contributors

vidartf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.