ElixirNote
GitHubBlogs
  • Welcome to ElixirNote!
  • Guides
    • Get started
    • Installation
      • Install From PyPI
      • Install From Source
    • Interface overview
    • Working with files
    • Text Editor
    • Notebooks
    • Terminals
    • Command palette
    • File & output formats
    • Extensions
      • Installing Extensions
      • Developer Guide
    • Built-in Services
      • ElixirNote Server
      • ElixirNote Hub
      • ElixirNote Shim
      • ElixirNote Nbc
      • ElixirNote Lab Server
    • Real-time Collaboration
    • APIs
  • Ecosystem
    • Integrations
      • GitHub
      • MinIO
      • PostgreSQL
      • MySQL
    • Ecosystem
  • Solutions
    • Solutions
  • Appendix
    • Contribute
    • FAQs
Powered by GitBook
On this page
  • TOC
  • Introduction
  • Installation
  • Usage
  1. Guides
  2. Built-in Services

ElixirNote Shim

PreviousElixirNote HubNextElixirNote Nbc

Last updated 2 years ago

TOC

Introduction

The ElixirShim provides a way for ElixirLab and other frontends to switch to Elixir Server for their Python web application backend.

Installation

Install from PyPI:

pip install elixir-shim

This will automatically enable extensions in Elixir Server.

Usage

The project also includes an API for shimming traits that moved from NotebookApp into ServerApp in Elixir Server. This can be used by applications that subclassed NotebookApp to leverage the Python server backend for Elixir Notebooks. Such extensions should now switch to ExtensionApp API in Elixir Server and add NotebookConfigShimMixin in their inheritance list to properly handle moved traits.

For example, an application class that previously looked like:

from notebook.notebookapp import NotebookApp

class MyApplication(NotebookApp):

Should switch to look something like:

from elixir_server.extension.application import ExtensionApp
from notebook_shim.shim import NotebookConfigShimMixin

class MyApplication(NotebookConfigShimMixin, ExtensionApp):
Introduction
Installation
Usage