I wish Python could load some dotfile on init that would import all libraries I find useful on the CLI.
But no, it keeps insisting it's a programming language rather than a calculator. I want a CLI REPL calculator!
Follow

@lynne When using ipython I configure it this way: github.com/pganssle/dotfiles/b

That's an arbitrary python file that ipython executes at startup time, so you should be able to add your desired imports there.

@pganssle Not quite what I'm looking for. It's rather large, and I still don't understand how I could import libraries without a namespace (sin(pi) instead of math.sin(math.pi)).
Sign in to participate in the conversation
CleverLibre Social

CleverLibre Social is an inclusive social instance for open discussion, learning, and community.
All cultures welcome.
Hate speech and harassment strictly forbidden.