Comments (6)
I'm embarrassed I didn't think to just add those lines to the Dockerfile :)
So now the question is: where should this live? I don't think it's appropriate for the pange-notebook
docker image, since those are used on hubs which will persist the user's layout from their last session.
It makes sense for binder since they don't have persistent users. So I think I'll add it here.
from default-binder.
@rabernat this gets confusing b/c conda path initialization, so add a flag (-n notebook
) to make sure things get installed into the correct environment:
FROM pangeo/pangeo-notebook:2021.04.26
RUN echo $(which mamba)
RUN mamba install -n notebook -c conda-forge rise
also for what it's worth the Docker build output just changed for new versions on a mac. I had to dig around a bit for a more informative output via : docker build . -t pangeo/rise:latest --progress=plain --no-cache
from default-binder.
@TomAugspurger and @rabernat - It just occurred to me that it's pretty straightforward to add postBuild and start commands to any of the notebook images (what is hard is adding conda packages), but you can do this:
FROM pangeo/pangeo-notebook:2020.04.22
# Override start script (/srv/start)
COPY binder/start binder/jupyterlab-workspace.json /srv/
You have to change a few paths in the start scripts you pointed to. I just tried it out and this gets you most of the way there I think: https://github.com/scottyhq/pangeodev-binder/tree/master/binder
from default-binder.
@TomAugspurger yes, this is basically what I would love. When running tutorials, having people have to copy the dask URL, then open up windows takes up a bit of time & results in a lot of confusion. So, having it automatically linked & some dask windows up already is ideal. Thanks.
from default-binder.
After almost exactly a year, I am reviving this issue.
It is not clear to me how to extend this binder environment. In my case, I wanted to add RISE to the environment. Here is my Dockerfile:
FROM pangeo/pangeo-notebook:2021.04.26
RUN mamba install -c conda-forge RISE
It didn't work. The mamba installation didn't go into the right location. There has to be some way to extend pangeo-notebook
(rather than rebuilding everything on top of base-notebook
). What can I try?
from default-binder.
Thanks @scottyhq! It worked!
from default-binder.
Related Issues (3)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from default-binder.