Questions tagged [jupyter]
Jupyter Notebook is a web-based interactive computational environment for creating Jupyter notebook documents, which contain both code and rich text elements such as text, equations, figures.
26 questions
0
votes
1
answer
198
views
How to enable jupyter-python for org mode in Doom?
I just installed emacs 29.1 on Linux Mint. Then I downloaded and installed Doom - which seems to be operating properly.
How do I enable Doom to run jupyter-python source blocks in an org document? I ...
0
votes
1
answer
455
views
How to work with a remote jupyter kernel using emacs-ein?
i have a local customized emacs with the emacs ein package. I am able initiate a jupyter kernel locally (via emacs or via the terminal) and start an interactive jupyter notebook session.
However, I ...
1
vote
0
answers
52
views
How to remove results drawer from emacs jupyter?
I am using emacs-jupyter (commit - 16cbda79167b4e2f2c6b61b218658f0f660d97f9 [otherwise I get an error]) on emacs-29.1 and org-9.7pre.
My default header arguments are...
org-babel-default-header-args:...
0
votes
1
answer
94
views
async/await in emacs?
I'm trying to run a hook that should start after buffers are loaded - it hooks into ein package that starts an "ipython server" that takes some time to start and it seems that the subsequent ...
0
votes
0
answers
118
views
How to wait for buffers to load?
I'm trying to create a hook for ein package that will clean up split windows and focus on the rendered buffer. The package provides one hook (called ein:ipynb-mode-hook), but running functions below ...
1
vote
1
answer
221
views
emacs-jupyter result of an org-babel source block displayed as hash
When I execute a jupyter source block in org-mode, I get a hash instead of the result
For instance, I get
#+begin_src jupyter-python :session sess :async yes
print("haha")
#+end_src
#+...
0
votes
1
answer
196
views
How to create a blank Jupyter notebook using ein?
I am using ein package in Emacs, and everything works fine when I use an existing Jupyter file.
However, when I create a new .ipynb file (with C-x C-f), I get a blank buffer which doesn't have any ...
0
votes
3
answers
929
views
DIsplay pandas dataframe (from source block output) inside an org-mode buffer
I'm trying to setup org-mode as a substitute for jupyter notebook using emacs-jupyter.
My problem right now is how to display pandas dataframes. When the dataframe contains cells with a lot of text ...
0
votes
1
answer
70
views
elpy - package import fails when jupyter notebook is in the same directory
Problem
Python import fails when there is a jupyter notebook files in the same directory.
Files
$ cat a.py
from b import (
test
)
test()
$ cat b.py
def test():
print("hoge")
...
7
votes
3
answers
2k
views
Opening and reading a jupyter notebook file
I would like to be able to read a jupyter notebook without actually having a jupyter kernel, in Emacs.
For instance, having a file example.ipynb, I would like to be able to open that file with Emacs, ...
2
votes
0
answers
571
views
Jupyter-like setup with org-babel in spacemacs
I've been trying to switch my data-analysis workflow from Jupyter lab/notebook to org-mode + org-babel for quite a while.
I'm looking for an emacs setup that will provide all the functionalities of ...
2
votes
1
answer
883
views
Jupyter notebook, matplotlib visualization not showing up
I am a new Emacs user and proceeded to the install following the tutorial at: https://realpython.com/emacs-the-best-python-editor/#integration-with-jupyter-and-ipython. Now I am running a Jupyter ...
3
votes
2
answers
2k
views
Is there a way to show python generated plots in the python interpreter console?
I use emacs for most python programming, but really miss the inline plot feature combined with printed output in Spyder. See picture.
I've been experimenting with various interpreter settings but ...
0
votes
0
answers
51
views
Why Jupyter console sometimes decide to output sometimes don't?
Problem
I don't know why my Jupyter console sometimes doesn't output anything. An example is this:
Notice that only the first line gets its output. I use C-enter to execute each line. Line 2, 3, 4, ...
3
votes
1
answer
701
views
run Emacs remotely in a webpage?
I am just curious:
Is there a way to run Emacs remotely from a webpage?
For example, one can set up a JupyterHub on a Ubuntu server so that many users can access server programs from a webpage. Can ...
2
votes
0
answers
507
views
flycheck - elpy - flake8 - ein and .ipynb files
I have set up Emacs (on Mac Catalina) with Elpy to handle Python.
I also managed to get Jupyter notebooks (.ipynb files) working with Elpy via Ein.
Both .py and .ipynb compile and use Flycheck ...
0
votes
1
answer
145
views
Elisp to get the language mode for the current ein cell?
When I'm using ein to run a python jupyter notebook, the major-mode variable is just "ein:notebook-multilang-mode" which makes it ambiguous what the current language is. I have elisp that only ...
0
votes
2
answers
572
views
ein login error due to curl version not support compressed
I am using win10, emacs version is GNU Emacs 26.3. python version is Python3.6.8.
After install EIN (EIN version is 20190813.2156) package and try to run M-x ein:login, I got below error message:
ein:...
1
vote
0
answers
117
views
emacs 26 orgmode on win10 can not find jupyter
I am using emacs26(GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)) on win10. I can run jupyter command from shell. but when I run below code:
#+BEGIN_SRC ipython :session test :results output
print("...
0
votes
0
answers
114
views
emacs display anomaly in Jupyter notebook terminal
When I use emacs in Jupyter hub terminal to edit a file, emacs seems to always insert an extra sequence of characters:
0;276;0c
before the actual content.
Also, after exiting emacs, the terminal ...
1
vote
0
answers
69
views
Shift key does not fully work in Juypter Notebook's terminal
The Shift key sometimes does not seem to work in emacs, when emacs is launched in Jupyter Notebook's terminal (in non-window mode). Other meta keys such as Ctrl and Alt on a PC keyboard work as usual.
...
0
votes
0
answers
95
views
jedi with ein does not work
While Jedi works in python mode, it does not in ein (jupyter-notebook). If I run jedi:setup manually, both of jedi and auto-complete get listed among minor modes.
I use emacs 25.1.1 on Debian.
I use ...
15
votes
2
answers
7k
views
Integrating jupyter notebook (ipython) into org-mode notebook
is there a way I can link in jupyter notebooks (ipython) into the org-mode notebook? The same way other files (images) can be brought in? If it is possible will the outputs are also seen in the note (...
2
votes
1
answer
2k
views
EIN : Width of output cells in notebook
I'm using ein to view and work with Jupyter Notebooks.
I'd like to be able to set the cell width to that of the window so that text wraps as little as possible. In a browser this can be done with...
...
3
votes
1
answer
1k
views
ob-ipython error message while evaluating SRC block
I am getting this error when executing any source ipython block such as this one:
#+BEGIN_SRC ipython :session :results output drawer
# Compute areas and colors
import numpy as np
import matplotlib....
1
vote
1
answer
234
views
org-mode backend: how to find tags of enclosing headline?
I am trying to write on org-mode backend to generate Jupyter Notebook, specifically optimized for producing slides using RISE (see https://github.com/hkarl/org-juslides if interested).
Suppose I ...