These are chat archives for ipython/ipython

12th
Oct 2016
Min RK
@minrk
Oct 12 2016 08:56
@monajalal I think you might be in the wrong place. This room is for getting help using the IPython tools in particular, not Python in general.
I suspect the issue is that this directory: '/home/mona/computer_vision/image_retrieval/images/car' doesn't exist yet, and you need to create it before trying to put files in it.
Utkarsh Rai
@utkarshrai
Oct 12 2016 10:12
hi everone. new here. see i was introduced to ipyhton via Coursera( taking two courses that use it) however when on my command prompt i'm not able to type more than 2 lines
Min RK
@minrk
Oct 12 2016 10:31
@utkarshrai hi! What OS and Python version?
Utkarsh Rai
@utkarshrai
Oct 12 2016 12:27
Ah I'm on win 7, python 2.7.12 Anacondoa 4.0.0
Min RK
@minrk
Oct 12 2016 13:36
this is terminal IPython (just type ipython in the shell)?
Are you starting it from Powershell, or something else?
Utkarsh Rai
@utkarshrai
Oct 12 2016 13:36
i type in the terminal ipython
Min RK
@minrk
Oct 12 2016 13:45
Can you run one command: 1<enter>?
(is the terminal cmd or powershell or something else)?
elfeck
@elfeck_twitter
Oct 12 2016 14:34
can someone tell me if I can get information (ie. current cell) about notebook-cells via the ipython api? Context: I'm writing a jupyter ipython extension
Min RK
@minrk
Oct 12 2016 15:09
@elfeck_twitter in general, IPython (the kernel) knows nothing about the notebook document. Not even that a notebook is the current frontend.
elfeck
@elfeck_twitter
Oct 12 2016 15:28
@minrk okay. I use nbextension for the front-end. Can I get the information there, as the notebook-context should be visible there? Can you point me to the API exposing this kind of functionallity. Thanks!
Min RK
@minrk
Oct 12 2016 15:41
Yes, in JavaScript this is available as Jupyter.notebook. What info are you after?
elfeck
@elfeck_twitter
Oct 12 2016 15:43
the current cell, ie. the DOM element.
Min RK
@minrk
Oct 12 2016 15:50
Jupyter.notebook.get_selected_cell().element, I think
(Typing from memory, I'm on a phone right now.)
elfeck
@elfeck_twitter
Oct 12 2016 15:56
Alright. Is there a doc for the Jupyter.notebook API? I couldn't find anything
Min RK
@minrk
Oct 12 2016 16:02
Not really, because it is rather unstable. The docs are the source. The next-gen (JupyterLab) have nice API docs.
elfeck
@elfeck_twitter
Oct 12 2016 16:03
@minrk okay, thank you for your help!
Min RK
@minrk
Oct 12 2016 16:06
Unstable meaning it changes across versions, not that it often doesn't work.