Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DEV: Use exec_lines and not profile dir for spin ipython #24256

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

seberg
Copy link
Member

@seberg seberg commented Jul 25, 2023

spin ipython is annoying me by using a temporary profile dir which means that every invocation has its own history file.

Trying things out, it seems like --TerminalIPythonApp.exec_lines= is a safe way to achieve the same thing (import numpy before anything else) while not interfering with -c "code" (or even more exec lines statements).


@stefanv can you have a look?

`spin ipython` is annoying me by using a temporary profile dir which
means that every invocation has its own history file.

Trying things out, it seems like `--TerminalIPythonApp.exec_lines=`
is a safe way to achieve the same thing (import numpy before anything
else) while not interfering with `-c "code"` (or even more exec lines
statements).
@stefanv
Copy link
Contributor

stefanv commented Jul 25, 2023

I tested it and it works. Thanks, Sebastian!

@stefanv stefanv merged commit 7c4184f into numpy:main Jul 25, 2023
60 checks passed
@seberg seberg deleted the spin-ipython-history branch July 25, 2023 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants