Giter VIP home page Giter VIP logo

Comments (10)

JBGreisman avatar JBGreisman commented on September 24, 2024 1

Here's a webpage with some suggestions: https://discourse.jupyter.org/t/how-to-reduce-mybinder-org-repository-startup-time/4956

I can certainly take care of making another extras_require entry in the setup.py for handling only additional packages needed for the examples. That may speed things up a bit, but @ianhi may have some other ideas -- he set up binder in the first place.

from reciprocalspaceship.

kmdalton avatar kmdalton commented on September 24, 2024

Going through the examples, I have tabulated the dependencies we actually import:

  • reciprocalspaceship
  • matplotlib
  • seaborn
  • numpy
  • tqdm
  • celluloid
  • IPython (from IPython.disaply import HTML, Image)
  • pandas
  • gemmi
  • PyTorch (only in example 3)

Maybe we can make some sort of .yml file with these specific dependencies and test out the launch time? I'm looking at you, @ianhi.

from reciprocalspaceship.

JBGreisman avatar JBGreisman commented on September 24, 2024

yeah -- I can split the [dev] dependencies between documentation / examples so that we only install the necessary ones in this context.

However, I think the main issue here is cacheing -- binder is very slow when something hasn't been set up in a while, but quite fast if it has been. I'm guessing because you just accessed it, it just loaded in ~5 seconds for me.

from reciprocalspaceship.

kmdalton avatar kmdalton commented on September 24, 2024

Yes, it is definitely zippy after the first run, but i think we should be able to pare down the initial build to <60s.

from reciprocalspaceship.

kmdalton avatar kmdalton commented on September 24, 2024

(based on other repos I've sampled).

from reciprocalspaceship.

kmdalton avatar kmdalton commented on September 24, 2024

Anyway --- this is outside my wheelhouse, but I figured it merited an issue.

from reciprocalspaceship.

JBGreisman avatar JBGreisman commented on September 24, 2024

I've made the simple changes that make sense. It's still not a "fast" build for the docker image, but I do think it's faster than it was. Feel free to close the issue if this seems to have improved things enough.

from reciprocalspaceship.

kmdalton avatar kmdalton commented on September 24, 2024

It's much faster now. Thanks!

from reciprocalspaceship.

ianhi avatar ianhi commented on September 24, 2024

This can be improved further by installing all the dependencies using mamba and then only using postBuild to install reciprocalspaceship

from reciprocalspaceship.

ianhi avatar ianhi commented on September 24, 2024

basically need an environment.yml file in the .binder or binder folder like here: https://github.com/jupyterlab-contrib/jupyterlab-vim/tree/master/binder

then binder will use mamba by default i think.

from reciprocalspaceship.

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.