Giter Site home page Giter Site logo

voici-demo's Introduction

Voici demo

lite-badge

Voici deployed as a static site to GitHub Pages, for demo purposes.

It uses jupyterlite-xeus to build the Emscripten environment, including the xeus-python kernel and run dependencies.

✨ Try it in your browser ✨

https://voila-dashboards.github.io/voici-demo

💡 How to make your own deployment

Screencast.from.2023-03-06.11-06-04.webm

Then your site will be published under https://{USERNAME}.github.io/{DEMO_REPO_NAME}

📦 How to install extra packages

You can pre-install extra packages by adding them to the environment.yml file.

For example, if you want to create a Voici deployment with NumPy and Matplotlib pre-installed, you would need to edit the environment.yml file as following:

name: voici
channels:
  - https://repo.mamba.pm/emscripten-forge
  - conda-forge
dependencies:
  - xeus-python
  - numpy
  - matplotlib

Only no-arch packages from conda-forge and packages from emscripten-forge can be installed.

  • How do I know if a package is no-arch on conda-forge? no-arch means that the package is OS-independent, usually pure-python packages are no-arch. To check if your package is no-arch on conda-forge, check if the "Platform" entry is "no-arch" in the https://beta.mamba.pm/channels/conda-forge?tab=packages page. If your package is not no-arch but is a pure Python package, then you should probably update the feedstock to turn your package into a no-arch one.
  • How do I know if my package is on emscripten-forge? You can see the list of packages pubished on emscripten-forge here. In case your package is missing, or it's not up-to-date, feel free to open an issue or a PR on https://github.com/emscripten-forge/recipes.

voici-demo's People

Contributors

derthorsten avatar jtpio avatar martinrenou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

voici-demo's Issues

Drop the JupyterLite `--contents` CLI option?

The build command now uses two ways for proving contents:

run: voici build --contents content --output-dir dist --XeusAddon.mounts content:/content

From an outside perspective, it could confuse users who may not know what the differences between the two are.

Maybe we can simplify it with the following:

 run: voici build --output-dir dist --XeusAddon.mounts content:/content 

Kernel Missing

Hello guys, I'm working on GitLab, and I'm using your library to deploy the Jupyter Notebook on GL Pages. The Pipeline end in success, and everything seems fine, apart from the fact that when I try to launch the page, it is stuck at the "Running" phase.

It seemed to me that the Kernel was not starting, and indeed in the deploy pipeline I've found this row:
"""
{...}/python3.10/site-packages/jupyterlite_xeus/add_on.py: UserWarning: kernel binaries not found for xpython-raw
"""

And then again same thing:

"""
{...}/python3.10/site-packages/jupyterlite_xeus/add_on.py: UserWarning: kernel binaries not found for xpython
"""

So, my feeling is that apparently it is not recognizing the kernel. Any idea in how to solve this?

.gitlab-ci.yml?

I'd like to see the same deployment that happens on github (with the deploy.yml) also translated into a .gitlab-ci.yml, to apply the
same process also on GitLab and not only on GitHub. Is it in the roadmap? Does it already exist?

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.