How do I toggle cell output in JupyterLab Version 3.4.4? - jupyter-notebook

In older versions I could press Esc+o and this still works in "classic notebook", but does not carry over to modern mode.
How do I get this behavior in the rest of the application?
The "toggle cell output collapsed" option is gone.

There is a blue bar next to the cell output. When you click it will hide the cell output.
There is also a command "Collapse All Outputs" which you can access from the Command Palette. You can assign this command to a new shortcut in Settings Editor.

Related

How to change edit mode shortcuts for Jupyter to use modifiers on Mac OSX

I'm trying to change edit mode shortcuts so they use modifiers. For example, I want to change the shortcut for "move cursor up" to cmd+j (I'm on OSX). But the problem is when I press cmd, it's not registering it as a keypress.

Shortcut key for changing code cell to markdown cell in jupyter notebook

Kind of silly, but is there a shortcut key to change a code cell to markdown cell?
To place a markdown cell, I have to insert a cell, then go to the toolbar menu (below the main menu bar), and then select "Markdown" instead of "Code".
Press M whilst in command mode (highlight around the selected cell should be blue, not green), use Esc to switch to command mode and Enter to switch back to edit mode.
So, if you're editing a cell, the key presses to change the cell to a markdown cell are Esc, M, Enter.
You can look up all the Jupyter notebook keyboard commands by pressing the keyboard icon in the toolbar. You can also edit your keyboard shortcuts by going to Help > Edit Keyboard Shortcuts
check help on the menu, there is keyboard shortcuts
select the code cell, press "esc + m ",and it will be a markdown cell.
moreover, from markdown cell to code cell, press " esc + y ".
Navigate to the required cell and press the Esc key on your keyboard followed by the M key
If you're using vim-bindings, the shortcut changes to Ctrl+2, also in command mode as in #Louise Davies answer.

How do I change the highlighter color in Adobe Acrobat Reader DC permanently?

I downloaded the latest version of Acrobat Reader and cannot figure out how to permanently change the highlighter color for all future uses. In the version I have on another computer, I can simply right click on the highlighter icon and select the color and transparency I wish to use.
Is this still possible in the new version? I don't like the harsh yellow that is the default and it's not practical to change the color of every highlight I make.
You can change the highlight color using the Highlight Text tool, which is available from the (rather hard to find) Comment Toolbar like this:
Go to View > Tools > Comment > Open to enable the Comment Toolbar
Click on the Highlight Text tool button
The Color Picker button now turns from greyed-out (disabled) to blue (enabled)
Two options here:
Option 1. Click on the Color Picker button and select the color you want your Highlight Text tool to be (limited colors).
Option 2. Ctrl+E (Windows) or command ⌘+E (Mac) to open the Tool Properties menu (broader selection of colors, as others have pointed out).
Go forth and Highlight text
Screenshot for context:
Here's the easiest way: Ctrl + E
(If the "Highlight text" tool is not selected, select it first by clicking on it.)
Now you can choose your favorite color from color panel at left corner box
Yes it is still possible. Go to the Highlight tool and right click, and then click on tool default properties. This is where you can select the new colour.
*I tested this on Version:
2015 Release: Version 2015.009.20069
Version File Version: 15.009.20069.28170
I haven't tested it in Reader, but this works on Acrobat Pro DC:
If you need to change an annotation's color on the fly, you can click on it and then press CTRL + E (CMD + E for a Mac). After you chose the color, click "More..." and check "Make Properties Default" to permanently store your prefered color as the new highlight color.
This is almost the same as right-clicking a comment and choosing "Properties", but the interface is nicer and it's quicker to change properties this way.
An observation: if you press CTRL + E and, without having selected any specific comment, click on a comment tool (Highlight, Underline, etc.) and change its properties in the new interface opened by CTRL + E, it will make those properties the default properties for that comment tool, but only for this session of Acrobat. That is, as soons as you close all Acrobat instances and start the program again, it will revert to the "default properties" you've set as "default" through the "Make Properties Default" method above mentioned.
TO change the highlighter color in Adobe Acrobat Reader DC (2016 on Mac)
1) Select the document's tab
2) Double-click on the comment tool in the right pane -- this will open a 'comment' toolbar below the 1st toolbar. (View -> tools -> comment -> open also achieves this.)
3) Click on the paint bucket icon, and pick a new color
That color will be applied to future comments / highlights. Hopefully this is what you mean by "permanently".
For me, there were 3 ways:
Right Click on Highlight button -> Show Properties Bar. A small bar named Highlighter Tool Properties would be added on screen.
Right Click on the highlighted area, click on Properties....
Press Ctrl + E, it opens the same toolbar as in pt. 1.
I tested it on the Adobe Acrobat Reader DC, 2015 Release, Version 2015.020.20042 (Windows).

Tmux current pane indicator when focus regained

I'm trying to create a visual indicator of which pane is currently focused in tmux when my terminal (iterm2, OSX) window gains focus. I have found that iterm2 sends a focus gained escape sequence (^[[I) so now I am trying to find how I can capture that and fire the prefix q command which shows pane numbers with the active pane in red.
Any ideas on how to capture the escape sequence in tmux OR in iterm2?
I have a partial solution to my issue which takes a different approach. Since I usually have vim and one terminal pane open, dimming vim when it is not focussed is a good indicator which pane is active. In order to achieve this I have modified the vim-diminactive plugin to react to focus events (https://github.com/blueyed/vim-diminactive/pull/8), this requires the Vitality.vim plugin as well as enabling (focus-events) in tmux options.
In order to completely solve my issue I am working on changing the background colour of terminal panes when they lose focus. I use zsh so I can capture the focus event with bindkey (I have verified this works) to issue a background colour change escape code to iterm2, however this seems to have no effect in tmux.

Close Other tabs in XCode 4?

Am I crazy or is it not possible to close other tabs in XCode 4? I have about 7 tabs opened littering my workspace. I right click the one tab I'm interested in to bring up the context menu. I can see options to open a "new tab", "close tab", "close other tabs", and "move tab to new window". However, the only option that is not greyed out is "new tab". Do I have to put XCode in some magical state to enable the other options? Are these options merely eye candy, teasing me with hopes and aspirations of things I might like to do? Is this some weird kind of year long April fools gag? Inquiring minds wanna know.
*Update Uploading a HocusFocus screen capture for clarity...
You should be able to hover over the tab and click on the cross that appears on the left hand side of the tab. However, if you are not seeing this cross for some strange reason - you should be able to close the current tab in XCode (similar to many other OSX applications) by pressing CMD+W on your keyboard.
While the context menu doesn't work when you right click on a tab, you can achieve all of the same results by using keyboard shortcuts (which do seem to work as expected). Each of the 4 options on the context menu maps to the following shortcuts;
New Tab: CMD + T
Close Tab: CMD + W
Close Other Tabs: CMD + ALT + W
Move Tab to Other Window: I couldn't find a keyboard shortcut, but you can click and drag the tab away from the menu bar.
There doesn't appear to be a sensible way to enable the context menu on the tabs at the current time.
Late to the party but are/were you in full screen? Try again after quitting full screen...
Just click: View -> Hide tab bar
I had a similar issue (I say 'similar, because using Cmd+W. Cmd+Alt+W' didn't work for me).
In my case the tab had a cross on the top right, grayed out and nothing happens when clicking on it. If I opened a new tab, I could close either of the extra tabbed editors, but not both(!)
In View > Editor, selecting 'Standard' removes the 'second tabbed editor'.

Resources