Does Enthought Canopy have an auto-complete and/or auto-suggest feature? - enthought

I am using the free version of Enthought Canopy for Python work and am forever finding myself hitting Ctrl + Space for an auto-complete list, but it never comes up.
It also doesn't auto-suggest anything whilst I type.
I have looked through all available settings and cannot find an option there to activate it.
Is this feature available and if so, how can one activate it?

Type the following:
import numpy as np
a = np.ar
Immediately after ar, press the Tab key. What do you see?
Reference in User guide:
http://docs.enthought.com/canopy/quick-start/code_editor.html#tab-completion

Related

is an advanced Python completion possible with Sublime Text 3?

I would like to have a completion in Sublime Text 3, for Python code documents, that would:
Complete the actual object method and other properties (like e.g.: os.path.isd → os.path.isdir without any previous occurence of the word isdir in the document).
Complete the general set of all document's words with a second, lower priority ↔ i.e.: have them listed them after the actual methods.
I would also like to see ST letting the words appearing nearier from the completion point to appear higher in the completion popup window.
Basically, I would like to have a completion resembling the Vim's CoC for C++ in its general features.
Is this possible? If yes, then what should be done to configure Sublime Text 3 for such coimpletion?
The behavior after installing the Python Completions package is far from perfect — all it does is apparently changing the priorities of the basic completion sources (after adding some that i didn't identify), so that it's worse than the shipped original' completion.
The Anaconda package (not at all related to the Anaconda Python distribution) does most of what you're looking for. You may also want to take a look at the LSP package as well.
It's upto you.
You can choose any plugin you like and your computer can support.
Just search the internet about the best python auto-complete.If you feel one of them is best suited for you, search in the package discoverer of Sublime Text for that name. If there is a plugin, install it or read the instructions,etc.
But I heard of some like Kite and Jedi.

JupyterLab autocomplete without tab

Pressing tab each time you want to automcomplete seems time-consuming. Ideally, you just type in the first couple of letters and you get a drop down list without pressing tab.
In Jupyter notebook, there were some extensions that you could install to get this functionality. https://github.com/ipython-contrib/jupyter_contrib_nbextensions
Is it possible to get this on JupyterLab?
Thanks
The jupyterlab-lsp extension offers this as an opt-in feature. After installing the extension in JupyterLab 3.0+ (which is two part: jupyterlab-lsp and the language server of your choice - see the linked instructions) you need to enable it in Advanced Settings Editor → Code Completion → continuousHinting:
Disclaimer: I am one of the authors. This feature is still under development.

Plain text autocomplete in Atom (Github)

I've auto-complete and auto-complete+ installed on the latest version of Atom. Unfortunately, these packages don't auto-complete or suggest words while typing plain text as open office or some sublime packages do.
For instance, if I am typing repo and the word repository already appears in the current document, I would like to have some sort of auto-completion / intellisense to show up.
I looked, in vain, for package in atom achieving that.
So, the question is, do you know any package to do that in atom or any intuitions on how to create it ?
Thanks.
Actually the autocomplete-plus package should do exactly what you want. By default it looks in the current document, but you can enable "Include completions from all buffers" to get completions from all open buffers.
A few suggestions why it does not work:
Make sure "Enable built-in provider" is activated in the autocomplete-plus settings
The package let's you choose between two "Default Providers", Fuzzy and Symbol. Try both (for me Symbol works fine)
Make sure the file type you use does support autocompletion and is not blacklisted, see this question for details
Maybe the autocomplete package interferes with autocomplete-plus. Try disabling or uninstalling autocomplete

Triggering autocomplete in emacs-prelude

I installed emacs prelude in cygwin via the simple curl installation. I open a test.js file and try typing "document." to see autocomplete but nothing pops up. Admittedly I'm totally an emacs/prelude newbie, is there something else I should be doing to get it to autocomplete?
Does your Prelude installation include library Autocomplete? And is that what you mean by "autocomplete"?
Give a recipe showing what keys you hit and what you expected to happen vs what actually happened.
Consult the Prelude manual.
Ask the preluddites themselves (sorry; couldn't resist): emacs-prelude#googlegroups.com.
I see only a few Google hits in English for all three keywords: "emacs prelude autocomplete", and none of them mention using Prelude and Autocomplete together.
Your question is too general, I am assuming by auto-completion you mean
A popup that displays the possible completions for currently typed
word and allows you select one of the candidates
Something like this
Last time I checked prelude did not come with such autocomplete but you can configure emacs to have this kind of completions. You will have to install a library that provides the completion UI, I know of three libraries that do this in emacs (ordered according to my familiarity with them)
1) auto-complete
2) company
3) completion-ui
You can install any one of these (auto-complete and company have a good a number of backends, I do not know much about completion-ui). If you are using emacs 24 this will be as simple as M-xlist-packagesRET, marking the package to be installed with I and then typing X (for auto-complete you will need to add melpa to your package archive, refer to the websites above for more on installation)
These will provide a basic completion interface. auto-complete by default offers words in current buffer for auto-completion. However for 'intelligent' auto-completion you will need to configure these to use a completion backend. This will vary according to the individual language you want completion (eg. jedi for python, tern for javascript, eclim for java etc), as such you will need to ask specific questions to get helpful answers.

Why does Tkinter kill ability to highlight text?

I'm running ubuntu11.04, and python3 with tkinter. I've yet to check on a windows config, but whenever I have a mainloop() running and a root window open with tkinter, I can't highlight text in text edit/ gui manager stuff. It doesn't leave me helpless, but copy/paste is a fairly integral part of my efficiency when navigating and coding. Has anyone else experienced this? Anyone know a fix?
-Cheers,
Chris
This sounds like a bug in whatever window manager you are using and/or in that specific version of ubuntu. This is a problem that hasn't been reported on any other platform, or on any other versions of linux.