Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
preserve ipython history between docker-compose runs (for local/development usage). diff is only approximately two lines
diff --git a/local.yml b/local.yml
index b587373..73684bf 100644
--- a/local.yml
+++ b/local.yml
@@ -3,6 +3,7 @@ version: '2'
+ ipython_data_local: {}
+ - ipython_data_local:/root/.ipython/profile_default # persist ipython data, including ipython history

This comment has been minimized.

Copy link
Owner Author

hangtwenty commented Apr 18, 2019

It can be done from CLI too without touching compose file, if you prefer. pydanny/cookiecutter-django#1794

The paths are a little different in that example, so one or the other may need adjusting. May vary by ipython version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.