I would like to use Emacs as main editor for iPython notebooks / Jupyter Notebook (with the package ein). I want to ask you if there is a way to run the server without the need to open a web browser.
-
I primarily use VIM. I know Emacs can handle lot more than VIM, which is primarily a text editor. I would love to be able to use vim/emacs to handle both the text editing as well as generate the jupyter notebooks, without leaving the program. Can emacs do that at present?alpha_989– alpha_9892017-11-24 17:12:03 +00:00Commented Nov 24, 2017 at 17:12
Add a comment
|
2 Answers
Is this what you want?
$ ipython notebook --no-browser
Edit
Now you should use instead
$ jupyter notebook --no-browser
Since
ipython notebookis deprecated and will be removed in future versions. You likely want to usejupyter notebookin the future
5 Comments
Enrico Pirani
Great! That is exactly what I need, Thanks Cyphase
Cyphase
Glad I could help @EnricoPirani :). Can you accept this so that the question will be marked as answered?
Cyphase
I'd appreciate if whoever down-voted this would explain why; I'd love to fix any issues :).
alpha_989
can you embed graphics and charts in emacs, just like you can in a jupyter notebook in a browser? What does this command do, and how is it different from just starting ipython?
Cyphase
Thanks for updating the answer @Romain. :)
If you don't want to type ipython notebook --no-browser all the time,
for ipython 4.0 with jupyter:
generate config
jupyter notebook --generate-configit would create a file at some place like
win:
C:\Users\[YouUserName]\.jupyter\jupyter_notebook_config.pylinux:
~/.jupyter/jupyter_notebook_config.pyadd
c.NotebookApp.open_browser = Falseto this file.
All done!
2 Comments
Mircea
Running the script will output something: Writing default config to <path> Then, you can edit that file with your favorite editor, and either follow the step 2, and add the line, or uncomment the line
#c.NotebookApp.open_browser = True, and set it to False.Marcin
Or can just use
alias jn="ipython notebook --no-browser".