pcdshub / hutch-python

Launcher and config reader for LCLS interactive IPython sessions
https://pcdshub.github.io/hutch-python/
Other
0 stars 18 forks source link

MAINT: IPython history file per host + configurable #381

Closed ZLLentz closed 6 months ago

ZLLentz commented 6 months ago

Description

Main changes:

Minor changes:

Motivation and Context

https://jira.slac.stanford.edu/browse/ECS-5096

How Has This Been Tested?

Where Has This Been Documented?

Only here, I need to write pre-release docs

Pre-merge checklist

ZLLentz commented 6 months ago

If I understand this right, the way to return to the previous behavior

You've made me realize that the opr actually has no simple way to return the old previous behavior, as written. The only supported solution is to not make the special folder.

:memory: is actually an ipython built-in magic value for not using a file at all and storing the session history in the process memory.

ZLLentz commented 6 months ago

dataclass-namespace-for-cli-args thing too

I'm a fan of this because it helps vscode keep track of which arg is supposed to be which type

ZLLentz commented 6 months ago

tbh it just makes it so I can add $HOSTNAME to the default later if we decide to do something like that