I am trying to get an output tab in Jupyterlab that shows the output of my code. Right now I can right-click on a cell output in the notebook and create an output view -- but this view does not update as I execute additional cells. Is there a way to do this (a setting or extension)?
I envision something like the Python extension in VS Code that allows you to split the screen and run cell code on the left and see the output on the right.
Just right-click the tab which shows the name of the file you are editing.
In the popup window select New View for Notebook.
A new tab (in a new window) will be opened and the output(s) of your file will be shown there.
Here after, if you give additional codes and run them, you will see that the output is updated in the New view.
Particularly, when you have a cell with markdown format, your input in that cell will be rendered (as you type) in the new view as a formatted one!
Right now I can right-click on a cell output in the notebook and create an output view
That's right.
but this view does not update as I execute additional cells.
That's right too. It is THE view of THE output for the cell you selected. If you produce some new output on THAT cell, it will update. Each cell has its own output area.
Is there a way to do this (a setting or extension)?
I'd suggest you explore the "output" widget. I can be very versatile once you learn to use it well (easier said than done).
https://ipywidgets.readthedocs.io/en/stable/examples/Output%20Widget.html
but this view does not update as I execute additional cells. Is there a way to do this (a setting or extension)?
Yes.
https://github.com/xiaohk/stickyland
This extension allows (among other things) to have one/multiple cells to rerun every time you run any cell.
The 2+1 guys there made a brilliant extension that works flawlessly. I can't praise them enough.
I envision something like the Python extension in VS Code that allows you to split the screen and run cell code on the left and see the output on the right.
That is also available.
It is under View > Render side by side
You are mixing up too many things.
See this:
https://github.com/jupyter/notebook/issues/2897
Related
There is something I want to do; but i don't know if it is possible.
I want to know if I can do what I want to do with EmEditor or something else.
You can find an example of what I want below.
Example Picture:
• The data on the left does not have the full name.
• The data on the right are those with the full name.
I present a small video to express what I want clearly.
Please watch the video first and then see the sample files where you can try how to do what I want.
Sample Video
Sample Files
The file on the right contains much more data than the file on the left.
That's why the first thing that comes to mind is; so sorting is useless.
For example, the data in the 1st row of the data on the left; corresponds to row 2 of the data on the right.
So no one has the same row.
That's why sorting doesn't work; and I need to search the left side data one by one inside the right side data and find the full name.
FOR INSTANCE:
On the left: 10-infographic-solutions-part-1
On the right: 10-infographic-solutions-part-1-D5DADA
Instead of searching all of them one by one, I want to automatically find the left-hand data among the right-hand data.
I thought this might be possible with EmEditor; but I don't know how.
If this is possible I would like to know how.
Also, there is one more thing I want to know.
I have something to add to the end of each line; but I can't put a bulk cursor at the end of all of them.
How can I do this with EmEditor?
I hope I was able to express clearly what I wanted.
If there is anything that confuses you, please let me know.
You can use Advanced Filter to find multiple strings combined with Logical Disjunction (OR). To do this:
Open Missing Data.txt with EmEditor, select all (Ctrl+A), and copy all the text to the Clipboard (Ctrl+C).
Open Full Data.txt, and click the Advanced Filter button on the Filter toolbar.
Click in the list box of the Advanced Filter dialog box, and press Ctrl+V to paste the Clipboard contents to the list box.
While all the items in the list box are selected, make sure the Match Case, (None), and Logical Disjunction (OR) options are selected, but no other options are selected.
Click the Filter button.
You didn't write what you want to do after searches, but if you want to remove all the matched lines from Full Data.txt:
Click the Abort button if you are already filtering. Click Bookmark button, and Close to dismiss the dialog box.
Right-click on the left edge of the editor (or select Edit menu - Bookmarks), and select Delete Bookmarked Lines.
As for selecting the end of each line, you can drag Mouse while pressing Alt to make a zero-width vertical selection at right (or press Alt+E, E to make a vertical selection, and press End). See Multiple Selection Editing for more information.
As web designer maybe you use daily the browser (Firefox / Chrome) Inspect Element tool more than browsing.
Sometimes to obtain the desired result is very complicated, the CSS changes & the new values added thru browser Inspect Element tool does not apply to only one element (div, p, span etc). After you accomplish the desired result do you have the option do highlight the values that was modified and new values added with a different color or in a separately menu / section?.
For example:
Display with yellow background modified values.
Display with red background new values added.
Question: Does any browser / add-on have at Inspect Element the option to display (highlight) only modified and new added values?
Of course, will be so gorgeous to have a separate menu / section to display separately all modified & new values inserted.
I can't believe it, but Inspect Element in Firefox has exactly what I've looking for:
1. Highlight modified and new added values
2. Copy modified rules
Now you can style at once multiple div's / span's / paragraphs, pseudo-elements etc till you'll accomplish your desired result. After that you can copy from one place all modified rules in different elements, at a 1 click!
If you use Inspect Element for CSS as a right little panel / sidebar (how I use) => see in picture the "blue arrow" (click that black arrow and menu "Changes" will appear).
I hope to help others this great feature of Firefox (well hidden), which will save you a lot of time!
I do not find this function in Chrome browser (or is better hidden than in Firefox).
I have emulated a hamburger menu (implemented as a textbox) that triggers a dropdown with various options that I want to display various tabs of an Excel workbook (though the specific purpose of the textbox is not relevant to my question). Is it possible to show the same textbox object (or any other object) with the same name and calling the same macros/vba code? I would like to avoid having to write a separate [tbName]_click, etc. event handlers for the each tab where I want it to appear (and will eventually want to have the hamburger menu displayed on various pages dynamically -- but that's a subject for another day).
Thx...
D.
The code for the hamburger menu (for which I already have working code) is implemented as a textbox ,but could be ANY object that triggers a macro when clicked. I don't think posting that code would be helpful. I have not yet begun witing code to place the copies of the object on different tabs. Before I begin writing that code, I was simply hoping for guidance on an APPROACH.-- not so much the code to do so as much as either a verbal description or even simple pseudocode showing how to copy the object from a source tab to a new or different target tab. That, and whether the object, after being copied to the target tab, can have the same name and trigger the same macro. There are other behaviors I want the object to display, but I can figure those out myself, and there's no need to bring them up here.
I am experiencing the following issue in Microsoft Excel for Mac 2016. When using the From Text data import function and clicking through the first two steps (selecting "Delimited" and defining delimiter), Step 3 allows for changing the column data format. By default, column 1 is selected and I can click to select any other column that fits into the window, as shown in the screenshot below. However, it seems that it is not possible to select columns that are to the right of those visible in the window. In my example below, there are about four more columns to the right. Scrolling and arrow-keys seem to not work in the Mac version.
Is there a keyboard shortcut, or some other workaround, that I am missing?
Perform a two-finger touch (not a complete tap), more like a contact. A slider bar will appear at the bottom of the columns. Now is your chance to grab it with one-finger click. If you begin with the pointer in the bottom part of the columns, it is much easier to grab the slider as it should be under the pointer. This probably works on other such windows.
I'm using the pyside designer as well as coding from the python file. I know I can use setTabText(index, text) to set a tab text but I want to set a tab text for a tab by object name. Also, is there a way to set a tab text when creating the tab? Also, is it possible to put the tabs on the left instead of the top? Like from top to bottom on the left side instead of left to right.
As you do not provide a working code example I will give you a just-explanation answer with no code.
First, set tab by object name: you need to find your object by name using tab = yourTabWidget.findChild(QWidget,"your-object-name") then using yourTabWidget.indexOf(tab) you get the index of your tab an finally use setTabText(index, text) as you already know. Also when you add or insert the tabs you can provide as a second parameter the name as in yourTabWidget.addTab(yourNewTab, "the-title-of-the-tab")
Second, yes, yo can put your tabs to the left using: yourTabWidget.setTabPosition(QtGui.QTabWidget.West)