Giter VIP home page Giter VIP logo

Comments (7)

jlperla avatar jlperla commented on June 3, 2024 1

I am more worried about the compilation overhead of the DifferentialEquations for the interactive one. If there is any change to their packages, at that point it can make a couple-dozen compilations necessary.

from lecture-source-jl.

jlperla avatar jlperla commented on June 3, 2024 1

The other thing is: do we tag the new QELP to be v0.3.1 instead of v0.4? It may make sense that these tweaks are only used for minor releases...

And I think we should also then push the changed v0.3.1 to the syzygy build, so that users have whatever is the latest after the ] up without a whole bunch of recompilation.

Of course, that means we add it to the syzygy, rather than replacing the current one. i.e. both v0.3 and v0.3.1 are instnatiated int he image.

from lecture-source-jl.

arnavs avatar arnavs commented on June 3, 2024

OK @jlperla I think this is complete. See the UBCEcon repo.

Each image comes with our usual set of packages (i.e., Expectations Parameters Plots InstantiateFromURL QuantEcon IJulia DifferentialEquations Interpolations...).

The headless image is about 3 GBs, with roughly 1.7 coming from our installed/precompiled packages, 0.5 coming from the base Julia image, and 0.5 coming from the Linux dependencies necessary for plots. The additional 0.3 is Jupinx/Miniconda.

The interactive image is about 6 GBs, with about 0.5 coming from our packages (smaller most likely because of pre-existing resources), 0.5 coming from Conda dependencies for R, 0.3 from Julia itself, and the rest from the base image. This is bigger than the one Jasmine was experimenting with, because we based it off of the full jupyter/datascience-notebook instead of picking and choosing.

from lecture-source-jl.

jlperla avatar jlperla commented on June 3, 2024

Are we using the InstantiateFromURL here to install/precompile all of QELP? Remember that we want this to work with them precompiled out of the box to be compatible with the lecture notes.

But before we do that... lets try to get the image size down. I think we should do the following:

  • Make a version of the QELP v0.4 where we remove DifferentialEquations, Dierckx, Interact, DiffEqCallbacks
  • Add in LazyArrays, FillArrays as well, but these are dependencies of banded, so it won't add anything
  • Do a general ] up afterwards.
  • We should check that the manifest.toml is significantly shorter, and we can test with the ECON_628 notebooks to make sure there isn't any issue after we move to v0.4
  • If there are a few lecture notes that use Dierckx, people can add it as required.
  • Remove the DifferentialEquations DiffEqBase from the headless and interactive ones as well
  • Add in the using InstantiateFromURL; activate_github("QuantEcon/QELP", "v0.4") or whatever into both of the images
  • We should then have separate headless-diffeq and interactive-diffeq images which use these other two as bases, but simply do a add DifferentialEquations DiffEqBase DiffEqCallbacks Interact Sundials; precompile to them. This gives an option for a precompiled, massive image with all the diffeq stuff in it.
    • I am not sure if you can do this prior to putting the first two as official docker images on the QuantEcon docker build (because we use it as a base image). We can get the login info from Matt, although it is possible jasmine already has it.

from lecture-source-jl.

arnavs avatar arnavs commented on June 3, 2024

OK, sounds good. We can also remove R stuff and try and delete unnecessary cache files.

from lecture-source-jl.

arnavs avatar arnavs commented on June 3, 2024

All sounds good to me. And agree that we shouldn’t have everything be a minor release.

from lecture-source-jl.

arnavs avatar arnavs commented on June 3, 2024

Closing this because we now have the QuantEcon/docker#2

from lecture-source-jl.

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.