unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Using emacs for working with python and numpy
@ 2023-05-30 13:18 uzibalqa
  2023-05-30 16:22 ` Basile Starynkevitch
  2023-05-30 17:17 ` Daniel Fleischer
  0 siblings, 2 replies; 4+ messages in thread
From: uzibalqa @ 2023-05-30 13:18 UTC (permalink / raw)
  To: uzibalqa via Users list for the GNU Emacs text editor


Using emacs for learning python with numpy

I would like to use emacs for working in python and calling numpy tools.  How can I proceed ? 
Have seen other using Jupyter but would prefer using emacs instead.

I was thinking about the possibility of org-mode to have some functionality to see the result
of executing python commands.  

Would appreciate some examples using numpy that I can execute from emacs if possible.




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

* Re: Using emacs for working with python and numpy
  2023-05-30 13:18 Using emacs for working with python and numpy uzibalqa
@ 2023-05-30 16:22 ` Basile Starynkevitch
  2023-05-30 16:38   ` uzibalqa
  2023-05-30 17:17 ` Daniel Fleischer
  1 sibling, 1 reply; 4+ messages in thread
From: Basile Starynkevitch @ 2023-05-30 16:22 UTC (permalink / raw)
  To: help-gnu-emacs; +Cc: uzibalqa


On 5/30/23 15:18, uzibalqa wrote:
> Using emacs for learning python with numpy
>
> I would like to use emacs for working in python and calling numpy tools.  How can I proceed ?
> Have seen other using Jupyter but would prefer using emacs instead.
>
> I was thinking about the possibility of org-mode to have some functionality to see the result
> of executing python commands.

My recommendation: use a  Linux operating system (e.g. 
https://debian.org/ ....)

Learn a bit of Emacs (ELisp) programming. Start from 
https://www.gnu.org/software/emacs/manual/html_node/eintr/

Download, compile from source the GNU emacs. 
https://www.gnu.org/software/emacs/

https://www.gnu.org/software/emacs/manual/html_node/emacs/index.html

https://stackoverflow.com/questions/14784347/i-want-a-elisp-script-executing-a-python-one-liner-under-the-cursor
<https://stackoverflow.com/questions/14784347/i-want-a-elisp-script-executing-a-python-one-liner-under-the-cursor>

https://www.gnu.org/software/emacs/manual/index.html

GNU emacs has the shell-command function (callable from your Elisp code)

My pet open source project is the RefPerSys inference engine. See 
http://refpersys.org/ and some code on 
https://github.com/RefPerSys/RefPerSys/

Regards from near Paris in France

-- 
Basile Starynkevitch                  <basile@starynkevitch.net>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/





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

* Re: Using emacs for working with python and numpy
  2023-05-30 16:22 ` Basile Starynkevitch
@ 2023-05-30 16:38   ` uzibalqa
  0 siblings, 0 replies; 4+ messages in thread
From: uzibalqa @ 2023-05-30 16:38 UTC (permalink / raw)
  To: Basile Starynkevitch; +Cc: help-gnu-emacs


------- Original Message -------
On Wednesday, May 31st, 2023 at 4:22 AM, Basile Starynkevitch <basile@starynkevitch.net> wrote:


> On 5/30/23 15:18, uzibalqa wrote:
> 
> > Using emacs for learning python with numpy
> > 
> > I would like to use emacs for working in python and calling numpy tools. How can I proceed ?
> > Have seen other using Jupyter but would prefer using emacs instead.
> > 
> > I was thinking about the possibility of org-mode to have some functionality to see the result
> > of executing python commands.
> 
> 
> My recommendation: use a Linux operating system (e.g.
> https://debian.org/ ....)
> 
> Learn a bit of Emacs (ELisp) programming. Start from
> https://www.gnu.org/software/emacs/manual/html_node/eintr/
> 
> Download, compile from source the GNU emacs.
> https://www.gnu.org/software/emacs/
> 
> https://www.gnu.org/software/emacs/manual/html_node/emacs/index.html
> 
> https://stackoverflow.com/questions/14784347/i-want-a-elisp-script-executing-a-python-one-liner-under-the-cursor
> https://stackoverflow.com/questions/14784347/i-want-a-elisp-script-executing-a-python-one-liner-under-the-cursor
> 
> 
> https://www.gnu.org/software/emacs/manual/index.html
> 
> GNU emacs has the shell-command function (callable from your Elisp code)

Have installed emacs and know some lisp.  But I need some specific help
in executing python code in a buffer.  If I need some elisp tools I have
to see the actual elisp code for that and how to use it, rather than generic
descriptions.

 
> My pet open source project is the RefPerSys inference engine. See
> http://refpersys.org/ and some code on
> https://github.com/RefPerSys/RefPerSys/
> 
> Regards from near Paris in France
> 
> --
> Basile Starynkevitch basile@starynkevitch.net
> 
> (only mine opinions / les opinions sont miennes uniquement)
> 92340 Bourg-la-Reine, France
> web page: starynkevitch.net/Basile/



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

* Re: Using emacs for working with python and numpy
  2023-05-30 13:18 Using emacs for working with python and numpy uzibalqa
  2023-05-30 16:22 ` Basile Starynkevitch
@ 2023-05-30 17:17 ` Daniel Fleischer
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Fleischer @ 2023-05-30 17:17 UTC (permalink / raw)
  To: help-gnu-emacs

uzibalqa [2023-05-30 Tue 13:18] wrote:

> I would like to use emacs for working in python and calling numpy tools.  How can I proceed ? 
> Have seen other using Jupyter but would prefer using emacs instead.

Just create an empty file, call M-x python-mode. Now, start a python
interpreter using the menu bar or by calling C-c C-p. Now you can either
write a line of code in the interpreter and press "enter" to see what
happens, or you can write code in the empty file and run the entire file
using C-c C-c, run a region C-c C-r. That's about all you need to run
python.

-- 
Daniel Fleischer




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

end of thread, other threads:[~2023-05-30 17:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-30 13:18 Using emacs for working with python and numpy uzibalqa
2023-05-30 16:22 ` Basile Starynkevitch
2023-05-30 16:38   ` uzibalqa
2023-05-30 17:17 ` Daniel Fleischer

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).