Automatically Run Python Profile Script at Startup #6376
-
Hi, is there a way to run a custom Python profile script at startup when opening the Python interpreter in Positron? Like an equivalent of R's ".Rprofile" script? |
Beta Was this translation helpful? Give feedback.
Answered by
austin3dickey
Feb 21, 2025
Replies: 1 comment 9 replies
-
Hi @dani-f, Thanks for using Positron. Have you tried this: ![]() |
Beta Was this translation helpful? Give feedback.
9 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey Daniel,
I can't quite reproduce what you're saying but I have some ideas.
First off, I have a startup script that looks like the following:
When I start up Positron, I don't see anything in the Variables pane, but I can see the changes I made in the Console:
There is actually an IPython config option that allows you to see the values of variables loaded at startup. I was able to activate this behavior by adding a config file: