Giter VIP home page Giter VIP logo

xeus-sqlite-kernel's Issues

Add a static demo with per-PR review

Problem

There's no place to try out this kernel yet.

Aside from off main, as new features are added, it would be nice to have something that reviewers can try out.

Suggested Improvement

  • add a dev-focused binder with jupyter-server-proxy
  • get set up for readthedocs (doesn't even require the mamb flag anymore to get a self-consistent environment)

RuntimeError: Aborted(Assertion failed: sz < N && "setting a small size"

Description

Opening a notebook with the jupyterlite-xeus-sqlite kernel gives the following error in the console:

RuntimeError: Aborted(Assertion failed: sz < N && "setting a small size", at: /install/include/xtl/xbasic_fixed_string.hpp,109,set_size). Build with -s ASSERTIONS=1 for more info.

Reproduce

Use jupyterlite-xeus-sqlite==0.2.0 in a JupyterLite deployment.

sqlite-0-2-0.mp4

Expected behavior

The kernel should start without error.

Context

Noticed when updating to jupyterlite-sqlite for the Try Jupyter deployment: jupyter/try-jupyter#10


cc @SylvainCorlay @DerThorsten if you can have a look, thanks!

Loading SQLite databases from a remote URL

The jupyterlite/xeus-sqlite-kernel currently seems to require users to create a database as part of a script before they can query it, rather than connect to a sqlite file shipped as part of a JuptyerLite distribution or uploaded to it, or connect to a remote database file.

The phiresky/sql.js-httpvfs Javascript package wraps a SQLite emscripten distribution and also provides a virtual filesystem that allows the SQLite database to access very large remote SQLite databases (if configured appropriately) in an efficient way.

I wonder if this approach could be used to support remote connections from the xeus-sqlite-kernel? Users could then use a simple web server to publish both the JupyterLite environment, and even a large database, and then query the database efficiently from their browser?

The SQLime browser based SQlite playground (nalgeon/sqlime) also offers some interesting "web integrations", as described on its About SQLime page. For example, SQL files can be hosted Github gists, the gist id passed via a URL parameter to SQLime, then loaded and run by the playground when the page is loaded. (Databases files can also be uploaded from the desktop to the playground environment.)

image

The Basthon in-browser notebook [repo] & SQLite kernel loads a database from a file path specified via a URL parameter:

image

(I also note here examples of using custom javascript functions to create custom sqlite functions.)

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.