Auto indenting in jupyter notebook - jupyter-notebook

When I go in next line (outside block of code) my indentation is automatically set (I accidentally turned on that option) few spaces to the middle. How can I delete that automatically set indentation? I want to start from the left side, from beginning, not few spaces away.
I tried shortcuts for indenting but that doesn't change my default auto indent in the next line

Related

How to modifiy line to line auto scrolling behaviour in Rstudio

When executing a script line by line in RStudio, the next chunks of code will appear automatically (the auto scrolling gets activated) when you're executing the fourth last visible line. This behavior is fine when having four panes, because it keeps the executed line on the middle of the screen.
I chose to reduce the left down pane to make room for the script. Now I would like to change the auto scrolling behavior, so that the next lines wont show at the bottom of the script (line 27 in picture) but on the middle of the screen(around line 14).
Is this possible?
Under options/global options/code/display, there is an option Allow scroll past end of document and highlight selected line
I am not sure whether this will help you, but to my understanding, Rstudio could not auto-scroll the page and make the line executed displayed at the center.

I want to get rid of this block in jupyter notebook's RISE

I am trying to load a widget (through HTML code) into my Jupyter Notebook's cell. I am trying out ways to get rid of the block shown on left side which shows "click to scroll output;double click to hide" in the below picture:
It's obtrusive. And also is there a way i can make the frame of the slide (highlighted in blue) larger (for only the current cell) so that it's clearer for view ?
I tried changing the "height" and "width" of RISE extension from "Nbextensions" tab but in vain.
This might sound ridiculous but, have you tried to remove this block using your browser's element inspector?
Example (remove code input)
Slide before deleting code input
Selecting correct div
Deleting input div
Slide after deleting code input
Of course it's just a temporarily solution and as soon as you refresh/reload your notebook it will be back as before.

How do I change Atom's bottom window height?

I recently started using Atom and try to make it as nice to work with as possible.
However I couldn't figure out how to change the height of the bottom window (a name for it would already help).
My goal is to have my console etc. as minimalistic as possible.
E.g.:
Atom's bottom window shown here with an output example from Atom-Runner
How do I only show the atom-runner's output and not the grey rest of the window on top of it?
How can I get rid of unnecessary labels like "Atom Runner: data.py"?
I found that you can change quite a bit within the styles.less file with commands like:
atom-workspace {
height: calc(...);
}
But that didn't really help me.
However I couldn't figure out how to change the height of the bottom window (a name for it would already help).
atom-runner displays its results in a bottom panel. There are a few different types of containers in the Atom window:
Panes are the content in the middle of the editor. Panes can hold as many items as you want, which are usually associated with a specific file (see TextEditors)
Docks are the expandable areas just outside the panes (the tree-view and github packages use docks). They can have multiple items and will create tabs for them.
Panels are the spaces on the edge of the Atom window. You can't hide them without disabling the whole package.
How do I only show the atom-runner's output and not the grey rest of the window on top of it?
The "grey rest of the window" is the bottom dock. You can hide it by clicking on the semicircle with the down arrow.
How can I get rid of unnecessary labels like "Atom Runner: data.py"?
I disagree that it's unnecessary, and you might some day find that you need to know what file you ran. However, if you want to do this, you can add the following to your styles.less:
.atom-runner h1 {
display: none;
}

How do I move to another line when I'm stuck inside angle brackets?

I use Visual Studio Express for the web.
I noticed that when I write an HTML markup such as h1, Visual Studio completes the tag for me. However, in this case I become inside the tag so when I finish writing my text I have to use the mouse to skip to the second line. If I press Enter rather than using the mouse then this will cause the ending tag for h1 element to be in the second line!
Is there a way using the keyboard to skip to the second line when I'm inside HTML tag?
End then Enter will insert a blank line underneath the current line, and move the cursor to it. It will indent to the current level.
Ctrl+Shift+Enter will insert a blank line below the current line, and move the cursor to it. It will not indent to the current level.
Ctrl+Enter will insert a blank line above the current line, and move the cursor to it. It will not indent to the current level.
These can be customised via Tools > Options > Environment > Keyboard (docs)
Some items of interest are:
Edit.LineEnd
Edit.LineOpenBelow
Edit.LineOpenAbove

No linebreak in ASP.NET

just wanna ask is it possible to remove the linebreaks? Now I want to have a row of textbox, buttons and a combobox, but the combobox will be at new line when I run the application. So is there a way to stop it from going to a new line? Thanks.
Setting the form elements style display property to "inline" will ensure they fall on the same line until they run out of space, at which point of course, they have to go to the next line. Now you can set the height and width properties on the form elements so they all fit on the same line, and even expand to fill the available space if needed.
The combo box should have it's style display property set to block, so it will fall on the next line automatically. EX: Style="display:block"
Are you running out of vertical space? Inline is the solution if not, as some elements may default to block and add a new line.
But if you want everything to be on the same line, but are running out of space, you could try specifying for a root element style="white-space:nowrap;". I forget if it's white-space or whitespace, but either it would prevent wrapping of elements that way.

Resources