How to activate the code assistance in IPython Notebook / Jupyter - scipy

I'm not 100% this is what it is called. I'm taking an online course on pandas. The 'syntax assistance box' keeps popping up for him. Although he is using Notebook and I'm using the latest version of Jupyter.

Just press <Shift>+<Tab> at the same time when the cursor is right after the object you information about.
For example:
pd.DataFrame
^
cursor
or with parenthesis:
pd.DataFrame()
^
cursor
Now press <Shift>+<Tab>.
Works in Firefox and Chrome. Need to test with other browsers.

Related

Using terminal on VS code

I just started coding and I wanted to use the terminal on VS code, but every time I hit enter, it keeps showing up my laptop name as you can see in the picture. How can I use the terminal without this?
Can someone give an advice on what to do

Jupyter notebook auto indentation doesn't work for scala

I have being using jupyter notebook from the anaconda distribution for quite awhile, and I have installed both Python 2 and 3, and R kernels. They all work fine.
Recently, however, after I installed scala kernel, everything works fine except for the auto indentation, i.e. the cursor always sits at the beginning of a line after the enter is hit, and this problem only occurs in scala notebook.
I have tried jupyter-scala and Apache toree. They both have this issue. This issue is troublesome, for example, when you write nested loops as you have to tab the mouse cursor to the right position on every new line.
I have tried the conventional methods such as modifying the custom.js file, and issuing the mirrorcode commands on the browser console to set the indentUnit. It has effect on Python and R notebooks but Scala notebook just won't change.
Highly appreciate your help! I have been bothered by this issue for awhile now. Thank you very much in advance!

how to show all methods that i can choose in ipython notebook?

I'm new to ipython notebook. When typing a code line, it should show all methods or attributes that I can choose. However, it didn't, and I'm not sure why.
It should look like this:
Does anyone know how I can get this to work?
Type the library name
Type period symbol .
Press tab
At this point you will see drop down menu (showing all the methods)
This works for both python 2 and python 3
That should be a new feature of IPython 6.0.
But as mentioned in the official release post, is still just for command line users, and they are working to port it to all other users.

QUTIP output displayed as image in iPython console within Spyder

I have been having this issue for a while:
Using iPython console in Spyder 2.3.8, and installed QUTIP 3.1.0,
I tried to run a simple code:
qt.coherent(3,1)
where I was expecting the output to be displayed as an array.
However, doing so in iPython in Spyder it shows an image:
It seems for some reasons it rendered the array as image, and this is awkward to read in most cases, which I prefer to have the array displayed, which actually works if I use the Python3 console in Spyder.
May I know if you have any idea what the cause maybe?
The weird thing is that, this happens only to my Fedora Scientific 23, to the Spyder3 running Python3.4.
Another computer running Windows and WinPython didn't share the same problem, which the array got displayed correctly.
Thanks for your attention.
It seems that the ipython in spyder is calling the latex_repr method rather than just repr. Seems to be a bug somewhere in spyder as the standard ipython terminal has no such error.
The image printing problem appears when I automatically loaded SymPy which is done by: go to spyder Tools>>Prefeneces>>Ipython console>> Advance setting>> check or uncheck symbolic mathematic
When I check the symbolic mathematic, I generally get the result as an image, so I uncheck it and restart spyder, now it works well.
However, if you want to calculate something from symbolic math, it is better to check the "symbolic math" box again. I try to load sympy to ipython but I constantly get a typeerror.

IPython auto-completion emacs24 doesn't work

I'm using emacs24.0.92 with IPython 12.
I took ipython.el file from IPython repository and also tried this patch however auto-completion still does not work for me.
Can someone give any hint about it ?
That's an old question but since I was looking for it:
1- python-mode.el
A quick search lead me to this working solution: http://www.emacswiki.org/emacs/PythonProgrammingInEmacs#toc5
2- jedi
You still can use the completion given by jedi.el:
http://jedi.jedidjah.ch/en/latest/
http://wikemacs.org/index.php/Python#Jedi
http://aliquote.org/memos/2013/02/11/emacs-auto-completion-for-python
Install with packages.el and call M-x jedi:setup. Now the completion fires at the third character. We still can not inspect an object with TAB like in a terminal, but with the 1st solution we can.
edit: false, it's just a matter of configuration: http://tkf.github.io/emacs-jedi/released/#configuration (use jedi:complete-on-dot to complete as soon as we enter a dot).