Remove question mark and Enter/Exit Button in RISE (Jupyter Notebook) - python

When using RISE in Jupyter Notebook, is there any possible way to not display the question mark (lower left corner) and the Exit/ Enter Button (upper left corner)?

Found a solution. Go to main.js located in /jupyter/nbextensions/rise, there delete both
buttonExit();
buttonHelp();

Pressing the comma (,) will actually hide/reveal the x and ? buttons, as well as the chalkboard buttons. To hide the controls, you need to uncheck the box in the settings with 'controls':
You can use shift + C or the Nbextensions menu from the main jupyter page to get to the RISE settings.
You can also set the slidenumber as blank to not show any slide numbers, and uncheck the option for the progress bar. Then with controls, menu items, progress bar, and slide numbers gone, you have a clean presentation.
Related github issue: https://github.com/damianavila/RISE/issues/244

May be you are asking How to get
from
you just need to press "," in command mode

Related

VS Code editing .ipynb file: How to collapse notebook cells?

I'm editing an .ipynb file in VS Code using the Jupyter Notebook extension. I can't seem to figure out how to collapse (or expand) cells.
Can someone explain to me how to do this (using hotkeys or not using hotkeys), or give ideas for what I might be doing wrong?
I tried each of the hotkeys shown below, under three sets of conditions: 1. with the blue vertical bar on the left-hand side of my cell input selected, 2. with the blue vertical bar on the left-hand side of my cell output selected, 3. with my cursor in my cell input.
And another way to collapse cells is coming to v1.64. See
Cell collapsing UI
Notebook cells have a blue bar on the left side to indicate that they
are focused. This bar is now interactive - you can click the top part
to collapse the cell input, and the bottom part to collapse the
output.
from https://github.com/microsoft/vscode-docs/blob/vnext/release-notes/v1_64.md#cell-collapsing-ui
In my VSCode insiders build version 1.61.0, its working.
What's working ->
a) One shot expand/collapse all cells(code/output) in '.ipynb'(notebook)
b) Single cell code/output expand/collapse in '.ipynb'(notebook)
c) code folding in `.py` file with `#%%` (hierarchy style)
for .ipynb (your requirement)
There is keybinding available: jupyter.notebookeditor.expandallcells/collapseallcells
what it does?
Expands/collapses all cells in one shot
Find this setting->
Top menu File->Preferences->Keyboard Shortcuts
In search("Type to search in keybindings"...top side)
type "Notebook Expand" or "Notebook Collapse", check out:
Notebook: Expand/Collapse All Cells,
Notebook: Expand/Collapse Cell Input and
Notebook: Expand/Collapse Cell Output
Its possible to expand/collapse single/all cells with these shortcuts keys.
To make this answer complete (others have answered)->
1. double click gutter area (immediate space on left side of code cell) to Expand/Collapse cell (code/output)
2. right click on gutter area to get Expand/Collapse cell (code/output)
Detailed post for '.ipynb' and '.py' here
Currently, the use of this function is not supported in Jupyter of VS Code, you could refer to this link: Jupyter notebook cell code folding and output view expanding request.
Also, please try to use "Visual Studio Code Insiders", right-click in the cell of Jupyter, and select "Collapse Cell Input" or "Collapse Cell Output":
before:
after:
I'm using version 1.58.2 and this functionality is now available!
Simply right-click a code cell and select 'Collapse Cell Output'.
Alternatively, click a code cell (make sure you are in command mode) and use the keyboard shortcut ⌘K T (on Mac) or Ctrl-K T on Windows.

Qt Creator - How to get rid of "line too long" warning in python scripts

As the title suggests I wonder if it is possible to set the length of a line in python scripts when someone uses Qt Creator as an IDE, in order to get rid of this annoying warning:
I found at least how to hide these annotations (for Mac Os users): First method is to go with the mouse on the top-left corner of the screen and to sequentially click Qt Creator->Preferences. Immediately the Preferences Dialog Window will appear inside the Qt Creator working window. There, have to go to Text Editor in the left panel and in the right panel associated with Text Editor, in the horizontal tabs have to click on Display tab. Scroll down and uncheck Line annotations. The second and the third methods imply to place the mouse over one particular annotation (second method) or over one of the small yellow triangles which are shown in the left column of the "lines numbers column" (third method) and in both cases after one or two seconds will appear a floater and inside that floater with blue letters will be the "Annotation settings" message. Clicking on that message will open the same Preferences Window like in first case. And there will be repeated the procedure described in the first case.

How to have a separate output window in PyCharm?

If you look at the picture inserted You'll see the output window is at the bottom in PyCharm so is there a way to get the PyCharm output window at the top.
You can do both -- separate window to pinned to top:
To make a separate window, choose floating mode from the tools menu (little gear symbol upper right of the output windows). There you can move it anywhere you like.
But to just move it to the top. simply open the same tools menu and choose "Move To..." and it'll go where you want without making it a separate window. Your choice!
Click on the "Top" option, this will move it to the top of the screen.

PyCharm - always show inspections

PyCharm displays little bars on the scroll bar for things like code warnings. This feature is called "inspection".
If you move the mouse cursor over a bar, it shows a preview of the code annotated with the inspection.
I find this really fiddly, and I'd actually like full inspection notices to be displayed all the time in the normal editor, just like it appears in the small preview.
Is there any way I can achieve this?
Using the default keymap, you can use F2 to jump to the next highlighted error and then Ctrl+F1 to show the tooltip.
According to this PyCharm's documentation there seems to be an Inspection Tool Window which displays inspection results on separate tabs..
You can access the tool window through menu Code | Inspect Code.
I just tried it and it showed a tab like this:
Press Alt+6
Or, click "Problems" on the bottom-left
Or click the error icons at the top-right of the text editor.
This gives a list of problems for the file open in the currently active tab. It automatically updates when you change tabs:

repositioning panes in Spyder panes

New to Python and Spyder. How do I reposition the panes in Spyder. I had them set with the editor in the upper left, the object inspector in the upper right, and the ipython console in the lower left. Somehow I messed it up, and can't figure out how to reposition them. Have crawled all over the web, but no joy.
Thanks
jpl
In the Spyder 4.0+ version, go to View menu, unselect "lock panes and toolbars" then you can drag the top area of each pane and move them freely.
Other answers are correct that you can recover past arrangements of the panes via the View/Window layouts menu, but if you want to actually create a new layout, that's another matter.
The fact is, it's pretty easy, once you know how. To move Help to the same pane that File explorer is in (in the picture below), the steps are:
Find Help in the same pane that Variable explorer is in, and click its tab to bring it to the front
Click the multiple windows icon in the upper right corner of the Help pane (see where the red arrows point?)
Help will detach from the rest of the window and you can now click & drag it to whatever pane - whether already existing or new - that you want to put it in
For Spyder IDE just go to View -> Reset window layout
just go to view->click on spyder default layout
that should work
The best way is to select what panes you want to view under the "View" tab.
To stack panes simply drag and drop over each other. More details on http://www.southampton.ac.uk/~fangohr/blog/spyder-the-python-ide.html
Section 6 Multiple windows.
On windows click on the 3 bars at the upright corner of the pane, undock and move the pane where you want. On Linux unselect View > lock panes and toolbars and move your pane.

Categories