GithubHelp home page GithubHelp logo

Comments (6)

jasongrout avatar jasongrout commented on June 13, 2024

Even if the data was somehow chunked, so only the packages that were actually imported were downloaded, would be great.

from xeus-python-kernel.

lesteve avatar lesteve commented on June 13, 2024

As mentioned above, python_data.data size goes up quickly when adding more packages. For example the command below creates a python_data.data file which is 117MB big which only a few "reasonably standard" packages (scikit-learn,matplotlib-base,seaborn,plotly):

jupyter lite build --XeusPythonEnv.packages=scikit-learn,matplotlib-base,seaborn,plotly

In practice it means that you can not use github pages to deploy your site, since there is a 100MB per-file limit.

I am aware you can use alternative options (e.g. Netlify) but I would guess that pushing into github pages is the simple setup and is likely to be used by a significant portion of people.

Also, for set-ups that push into a gh-pages branch (or .github.io repo) on each commit to main (scikit-learn does that but I am guessing others do as well), even if we are below 100MB, it also means the github repo size may grow quickly, which makes it a bit painful to interact with (e.g. long git commands).

from xeus-python-kernel.

DerThorsten avatar DerThorsten commented on June 13, 2024

I already implemented such chunking, this will be added in one of the next releases

from xeus-python-kernel.

lesteve avatar lesteve commented on June 13, 2024

Great to hear that, just curious (and to get a better idea of the landscape), in one of the next releases of which project? jupyterlite, emscripten-forge, jupyterlite-xeus-python, something else?

from xeus-python-kernel.

martinRenou avatar martinRenou commented on June 13, 2024

This was done in empack, the tool that we use for "packing" the Python environment, we still need to make use of it in jupyterlite-xeus-python.

from xeus-python-kernel.

lesteve avatar lesteve commented on June 13, 2024

Nice, thanks!

from xeus-python-kernel.

Related Issues (20)

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.