question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deployment Documentation

See original GitHub issue

Problem

It’s still a little unclear how one would actually deploy and “own” jupyterlite.

Proposed Solution

Add a Deployment section which includes:

  • how to configure
    • where to put a jupyterlite.json
    • JSON Schema
  • how to get the code
    • we could be shipping the tarball to the docs site, which is as good as any, for now
  • configuring different SaaS providers
    • vercel
    • github pages
    • readthedocs
  • on-premises
    • nginx?
    • inside other host apps
      • jupyterhub
      • jupyter_server (#41)
        • jupyter-server-proxy
      • django?
      • fastapi?
      • flask?
    • how to configure CDN replacements (#45)

Additional context

  • #30 probably required before this is actually important

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:18 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
JacobJeppesencommented, Apr 2, 2022

Thanks for the quick reply.

I changed it such that Django acts as a “dumb” http server when serving JupyterLite, and serves the files directly from the collected static files (just had to install whitenoise to allow this). Everything seems to work now. Looking back, this is really how I should have done it to start with.

If anyone else needs this, the working example is here: https://github.com/JacobJeppesen/jupyterlite-django-deployment

1reaction
bollwyvlcommented, Jun 13, 2021

Yeah, there are a lot of distracting directions (e.g. #141) right now, but getting a minimal CLI out is probably more important. Once written, It’s going to be much easier to keep that documented in a semi-automatic way, e.g. jupyter lite --help, rather than a bunch of narrative docs.

Once that works, it will be:

pip install jupyterlite <any labextensions you want>
jupyter lite init ./my-jupyterlite
cp <your notebooks> ./my-jupyterlite/files
jupyter lite build ./my-jupyterlite

…and the contents of ./my-jupyterlite will be a ready-to-host site, on s3 or whatever. Shouldn’t have any nodejs dependency. We can leave some hooks open, e.g. jupyter lite publish --to s3 but that implementation probably wouldn’t live in this repo.

Since #141 isn’t going to be merged any time soon, maybe I’ll switch gears and try and get something passable out re #41

Read more comments on GitHub >

github_iconTop Results From Across the Web

Preparing deployment documentation
The deployment documentation might include training materials for new users and test plans to verify a successful deployment that can be reused when...
Read more >
Deployments - Kubernetes
A Deployment provides declarative updates for Pods and ReplicaSets. You describe a desired state in a Deployment, and the Deployment Controller changes the ......
Read more >
Documentation deployments - GitLab Docs
Docker images used to build and deploy all the online documentation, including stable versions and the latest documentation. Documentation deployments have ...
Read more >
Google Cloud Deploy documentation
Create reliable software delivery pipelines to automate deployment of your applications through a progression of multiple target environments.
Read more >
Deployment guides — Documentation Contributor Guide ...
This allows each deployment projects to create their own deployment guide, based on a standard template, in their own repository. These guides are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found