emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* python babel not running startup file
@ 2014-04-24 13:55 Ken Mankoff
  2014-04-25 15:28 ` Eric Schulte
  0 siblings, 1 reply; 3+ messages in thread
From: Ken Mankoff @ 2014-04-24 13:55 UTC (permalink / raw)
  To: emacs-orgmode


I have the PYTHONSTARTUP environment variable set to "~/.pythonrc". That
file is not run by Org babel. Can anyone recommend how to execute that
file, or some other method for customizing all Org babel python
executions.

Specifically, I load a custom colorbar in my ~/.pythonrc and
~/.ipythonrc files, and would like Org python to behave the same.

  -k.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: python babel not running startup file
  2014-04-24 13:55 python babel not running startup file Ken Mankoff
@ 2014-04-25 15:28 ` Eric Schulte
  2014-04-25 15:37   ` Ken Mankoff
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Schulte @ 2014-04-25 15:28 UTC (permalink / raw)
  To: Ken Mankoff; +Cc: emacs-orgmode

Yes, customize the org-babel-python-command variable.

Best,

Ken Mankoff <mankoff@gmail.com> writes:

> I have the PYTHONSTARTUP environment variable set to "~/.pythonrc". That
> file is not run by Org babel. Can anyone recommend how to execute that
> file, or some other method for customizing all Org babel python
> executions.
>
> Specifically, I load a custom colorbar in my ~/.pythonrc and
> ~/.ipythonrc files, and would like Org python to behave the same.
>
>   -k.
>

-- 
Eric Schulte
https://cs.unm.edu/~eschulte
PGP: 0x614CA05D

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: python babel not running startup file
  2014-04-25 15:28 ` Eric Schulte
@ 2014-04-25 15:37   ` Ken Mankoff
  0 siblings, 0 replies; 3+ messages in thread
From: Ken Mankoff @ 2014-04-25 15:37 UTC (permalink / raw)
  To: Eric Schulte; +Cc: emacs-orgmode


On 2014-04-25 at 11:28, Eric Schulte wrote:
> Yes, customize the org-babel-python-command variable.

Right. I had tried that and it didn't work before I sent the email. This
does work:

(setq org-babel-python-command "python -i /Users/mankoff/.pythonrc")

Perhaps I had a typo or other bug with my previous attempt.

Works now!

Thanks,

  -k.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-04-25 15:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-24 13:55 python babel not running startup file Ken Mankoff
2014-04-25 15:28 ` Eric Schulte
2014-04-25 15:37   ` Ken Mankoff

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).