Enthought Canopy some keyboard shortcuts not working - enthought

I'm using Canopy (1.1.0 64-bit on Mac OSX 10.8) to create IPython notebooks and I noticed some keyboard shortcuts are not working. While Command+C and Command+X work as expected, paste (Command+V) and the cell shortcuts (e.g. Ctrl+m m for converting the cell to markdown) are not working.
For Command+V, it makes the cursor jump to the beginning of the cell instead of pasting, so I'm assuming it's been set somewhere to something different than paste. Is there a way to remap it back to paste?

I had the same issue before, which has been solved by installing newer version of Enthought Canopy (>=1.4). See the following link for details. Hope this helps!
https://support.enthought.com/entries/21742524-OSX-Pasting-to-the-notebook

Related

VSCode Shortcut Ctrl+Shift+e renders as unknown instead of navigating to explorer window

I am trying to navigate to the explorer window via Ctrl+Shift+e but this sequence of keystrokes is not recognizable by VSCode 1.55.2.
I checked this two ways. First, via trying to check what Ctrl+Shift+w and Ctrl+Shift+e were binded to via keyboard shortcuts (Ctrlk, Ctrls) and then recording the keystrokes to reveal what they were binded to.
You will observe that ctrl+shift+w is recognized. Then, in the gif, when I press ctrl+shift+e it renders as ctrl+shift+unknown.
Then, whenever in a saved open file in the editor, when I press ctrl+shift+e hoping that the explorer navigator opens up on the left, that does not happen. Instead the file becomes unsaved with an underscore e appearing in the file.
This is completely new and strange behavior of the editor. I did not encounter this before.
Any help is appreciated.
Edited to add update: VSCode folks indicate that this is a known issue. Ctrl+shift+e translates into insertion of an emoji, it seems. See their comment here.
Same thing happened to me, using linux (ubuntu).
I installed it from the snap store, and tried reinstalling from there and the problem was still there.
Uninstalled and installed it manually from de .deb package at their webpage and it was solved.
Maybe it's an issue they have solved in the latest version (1.15.8) but it's still unsolved in the snap version (1.15.2 in your case, i didn't pay attention on what was my version).
Same problem. Installing vscode from .tar.gz - works perfectly fine, installing from snap leads to unexpected behaviour on Ctrl+Shift+E

How to Format Jupyter notebook in VSCode?

We can format python code in the jupyter notebook in the browser. After I change to VSCode and use the Microsoft extension, I find I can not format Jupyter notebook any more. Does anyone know how to solve this?
As Kyle Carow stated in their answer to Ian Huff: Formatting of notebooks is available by now.
MacOS: Option+Shift+F
Windows: Alt+Shift+F
Pressing these keys will either trigger a formatting of the active cell or the notebook as a whole if no cell is active.
Windows: Shift+Alt+F
Is what worked for me with Black formatter set up on VS Code Version: 1.64.2
Or right click "Format Notebook" to format entire notebook.
Format Notebook
I do not think VS Code support formatting of code cells, but if you use the black code formatter, then you can use the blackcellmagic %%black to format the code in a cell.
You need to have pip install black and blackcellmagic, details here: https://github.com/csurfer/blackcellmagic
I'm not exactly sure what is being asked here. But currently in VS Code the notebook editor and interactive window do not support formatting python code.
However we are moving to a new UI for those features which will support all the formatting features of VS Code in .py files. If you try out VS Code - Insiders now you should see this support and can try it out. This new UI will eventually be rolling out to VS Code stable.
Edit: The new UI which supports formatting in cells is now out by default for stable users.
If you have a Jupyter notebook open in VS Code with the Jupyter notebook extension, it should be possible to format code cells with Ctrl+ Shift+ I.
I'm not sure if this shortcut differs between operating systems, you can check what the shortcut is yourself by hitting Ctrl+ Shift+ P and then searching for "Format cell". The shortcut should be displayed then.

Ubuntu loses text-editor focus from time to time

I have just upgraded from Ubuntu 10.04 to 12.04.3 LTS. An annoying thing I discovered is that, in eclipse and matlab, I cannot type text sometimes. The detailed phenomena are as follows:
Eclipse
Happens after using auto-completion (activated by customized shortcut alt+/), or switching from other windows, or pressing ctrl+z, etc.
Can use mouse to move cursor around, but keyboard does not respond.
Using alt-tab to switch back and forth can solve the problem.
And similar things are happening in matlab, whenever I hit tab . But gedit and browser are working fine. Wonder if anyone has encountered the same problem. Thanks.
Problem solved. It's really a conflict between out-of-date keyboard input methods and java programs in Ubuntu 12.04. See https://askubuntu.com/questions/365205/text-editors-in-eclipse-matlab-loses-focus-occasionally-after-upgrading-to-12-04.

Ctrl button doesn't work in Eclipse

I use Ubuntu (64 bit). I saw some discussions about Ctrl+Space, but in my case I can't do Ctrl+S, Ctrl+V, Ctrl+Z, Ctrl+Shift+F and, probably, something else (all these cases work fine in other programs, so it's not a keyboard problem). It doesn't work, then it does, then it doesn't again. Is there a way to fix that? Thanks in advance.
I am also using 64-bit Ubuntu (12.04 now, 11.10 before that) and Eclipse. I was having similar problems like what you are describing, until I realized that keyboard input method/layout settings actually matter in Ubuntu (while it does not in Mac OS or Windows) while using copy/paste. If you are using two keyboard layouts (e.g. I am using English and Bulgarian), Ctrl-C / Ctrl-V will not work with the non-English layout. If it does no work, double-check the current keyboard layout.
It took me awhile to figure that out - hope it would help you too.
I've solved the same problem rebuilding my workspace CTRL + B on Windows
Similar problem
Looks like there are some key combination which screw up with the focus in the eclipse editor. Try using the shortcut for Focus Return
Shift+Alt+f

Why the keyboard get locked sometimes when I use Netbeans on Linux?

I am using Netbeans to develop a Ruby on Rails application. Unfortunately, I have a problem with it.
Sometimes the keyboard stop working and I can not input code in the text editor.
Also the keyboard short cut specific to netbeans stop working as well (such as ctrl + s)
Nevertheless, the Ubuntu keyboard short cut still work (alt + tab ...)
The only solution I found is to maximize/unmaximize the window of the text editor or switch tab.
This probably isn't a proper SO question, but have you tried switching from the community version of Java to the Sun version (or the other way around)?
https://help.ubuntu.com/community/Java