The most rudimentary questions from the ipython laptop from the first user:

I am currently using PyCharm's safe and simple limitations, but I am trying to learn more about using a text editor and terminal together, so I forced myself to start using iPython Notebook and Emacs. Aaaaand I have some really stupid questions.

  • after starting the ipython laptop from the terminal using the ipython notebook command, it appears in my browser and allows me to encode. but I can not use the terminal when it is connected to the ipython server for laptops?

  • after writing my code in ipython laptop, I was left with something.ipynb file. How to run this file from the terminal? If it was a .py file, I know that I can execute it by associating python something.py with the command line; but it does not work if I find python something.ipynb on the command line. And of course, I assume that I pressed Control-C to first exit a working server in a terminal? or am I running a team without leaving it? Or am I doomed to test it in iPython and then copy and paste it into another txt editor, such as Emacs, and save it in a .py file to run it?

  • What is a good .ipynb file if I cannot run it in the terminal or outside the iPython Notebook browser? Can I get my code in .py from iPython Notebook if I want? (I assume that I can easily run it in the terminal by linking something.py, then)

Thanks in advance. I am still trying very hard to figure out how to use this thing, and there are several answers to the questions of this elementary.

+4
source share
2 answers
  • Yes, you cannot use the same terminal. Solutions: open another terminal or run ipython notebookinside screen. If you use Windows, you can take a look at this question .
  • (ipynb files) , LaTeX, HTML, PDF Python.
  • , , , . - , , , . , ipynb. .
+3
  • IPython .

Unix ( &):

ipython notebook &

"" [Control+z] bg (- ).

  • .ipynb .py, nbconvert

Ipython 2.x( ):

ipython nbconvert --to python mynotebook.ipynb

Ipython 3.x( ):

  ipython nbconvert --to script mynotebook.ipynb
  • .ipynb script . script ( " " ).
+1

All Articles