enthought / edge-examples

Example applications and related documentation for Edge
1 stars 0 forks source link

Enhance local development with Edge Examples and Edge CLI #118

Open carlosdtrejo opened 18 hours ago

carlosdtrejo commented 18 hours ago

From support ticket #166:

Running the streamlit app created with the Edge CLI. It looks like some dependencies (e.g.., streamlit) is only installed in the Docker image. I can see a case where the user wants to run their application locally without going through edge app build when they are getting started. It is also likely quicker since you don't have to rebuild the docker image each time you make a modification. As much as possible, it would be nice to include all application dependencies locally for development (there are likely going to be platform specific things that are only available on Linux and in the built image). Running the image is great when you want to check how things will actually work when deployed, but it shouldn't be the only mechanism for development.

@EdwinWiseOne enhanced support for local development would be beneficial for users. Would this require changes to the Edge CLI?

EdwinWiseOne commented 17 hours ago

There are two sections in the config file -- "env_deps" are used to build the environment, and "app_deps" for the docker image. We could automate merging the two via the CLI when making the environment, or manually add the "app_deps" to the environment list in the examples.

The automated merge might be better, so the two dependency sections are still separated by their semantic purpose, in which case it's a CLI change.