From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Skip Montanaro <skip.montanaro@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Pyenv and Jupyter integration with emacs.
Date: Thu, 11 Mar 2021 23:07:02 +0800 [thread overview]
Message-ID: <CAGP6POJ277Wjh3DEwy+S6abEdRahg7x1cUZ8eWmsK3tKPAs08Q@mail.gmail.com> (raw)
In-Reply-To: <CANc-5UxKVWDT1aak1eQJMy6sDHBTP7Pk+1srbfHUxvfnsZfJQQ@mail.gmail.com>
On Thu, Mar 11, 2021 at 9:02 PM Skip Montanaro <skip.montanaro@gmail.com> wrote:
>>
>> On Ubuntu 20.04, I use pyenv, <https://github.com/pyenv/pyenv>, as the
>> python version management tool, and Jupyter (formerly known as
>> ipython) to write notebook. Currently, I consider migrating to Emacs
>> as a python development environment. I've searched and found the
>> following relevant projects on GitHub:
>>
>> https://github.com/millejoh/emacs-ipython-notebook
>> https://github.com/nnicandro/emacs-jupyter
>> https://github.com/twlz0ne/shim.el
>>
>> But I myself haven't any experience on this filed. Could you please
>> kindly give me some hints/suggestions?
>
>
> I don't have any experience with these packages either. I installed emacs-jupyter, but was initially stymied trying to get started. I eventually got jupyter-connect-repl to work by tracking down one of the kernel-mumble-mumble.json files in ~/.local/share/jupyter/runtime, e.g. kernel-eed594bc-6480-40b4-b8e2-4c56d2f6bf29.json. Here's the one I referenced:
>
> {
> "shell_port": 37041,
> "iopub_port": 58707,
> "stdin_port": 41637,
> "control_port": 42543,
> "hb_port": 44903,
> "ip": "127.0.0.1",
> "key": "69964a9c-9cc1c1cd6bb7b925c4649648",
> "transport": "tcp",
> "signature_scheme": "hmac-sha256",
> "kernel_name": ""
> }
>
> Note the empty kernel_name. I have two notebooks open in my browser at the moment and see no way to name them from that interface. I had to try evaluating existing objects in the kernel to figure out which one I was talking to. Not sure whose problem that is, but it seems a bit clunky.
>
> This has to be (at least marginally) better than interacting with the kernels through a web browser, just because you have Emacs functionality at your keyboard.
I still don't quite understand what you wrote above. OTOH, from my
intuitive point of view, it seems that emacs-ipython-notebook is more
powerful then emacs-jupyter.
HY
> Skip
>
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic University of Science and Technology engineering
NO. 552 North Gangtie Road, Xingtai, China
next prev parent reply other threads:[~2021-03-11 15:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-11 9:59 Pyenv and Jupyter integration with emacs Hongyi Zhao
2021-03-11 13:03 ` Skip Montanaro
2021-03-11 15:07 ` Hongyi Zhao [this message]
2021-03-11 15:28 ` Skip Montanaro
2021-03-12 1:04 ` Hongyi Zhao
2021-03-13 0:52 ` Hongyi Zhao
2021-03-13 2:43 ` Doug Davis
2021-03-11 16:46 ` Joost Kremers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGP6POJ277Wjh3DEwy+S6abEdRahg7x1cUZ8eWmsK3tKPAs08Q@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=skip.montanaro@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.