Open sterlinm opened 3 years ago
you right some dependencies are not define in the conda package. you should also need intake and intake-parquet as soon as you will use other examples (NYC and Precip)
We could solve this by shipping each example with an associated anaconda-project.yml file that defines the environment, but I'd propose a simpler solution of just moving all the main examples into the same directory and providing one anaconda-project.yml (or environment.yml) file that covers all of them. I don't think such an environment will be unwieldy, and then the directory can be published as live apps on examples.pyviz.org so people can try them out online.
A list of dependencies I had to install to run the examples:
My suggestion above still seems worthwhile, but I'd also wonder whether each Lumen .yml file should include its own environment specification in a form that can be given to conda and/or anaconda-project. That way the .yml file will be a complete specification for what's required, and e.g. the Lumen builder could keep track of which optional components are used in a given app so that the .yml spec covers not just how to build it but what needs to be in the environment when doing so.
Looks like a really cool project! Not a huge deal, but I think the conda recipe is missing a few required packages that are needed to run the Palmer Penguins example dashboard. I haven't tested it for the other examples.
ALL software version info
I'm doing this on a mac using conda and mamba (I tried with conda after it didn't work with mamba).
Description of expected behavior and the observed behavior
I'd expect that I could create a new conda environment with only python 3 installed, run
conda install -c pyviz lumen
and then run one of the example dashboards withlumen serve dashboard.yaml --show
. When I do that it starts to serve the dashboard but I get errors regarding missing packages and the dashboard doesn't load (though it opens a new browser tab).Complete, minimal, self-contained example code that reproduces the issue
I'm using the penguins dashboard.yml file.
Here's the
environment.yml
file I expect to work.I then run the following:
Stack traceback and/or browser JavaScript console output
Solution
After some trial and error, it works fine if I include dask, aiohttp, pyarrow, and hvplot explicitly.
Here's a working environment file.