So, I have a ipython notebook consisting of several 100 cells.
A couple of consecutive cells logically belong to one particular functionality or milestone of the notebook.
These logical divisions are separated by a cell containing a heading (in markdown).
I can collapse individual cells.
Is it possible to collapse multiple cells together , such that only the header cell is visible and when I uncollapse it, I see all the cells under that header?
For visualization
Cell 1 : Heading 1
Cell 2 : functionality x
Cell 3 : functionality y
Cell 4 : Heading 2
Cell 5 : functionality A
Cell 6 : functionality B
I want to connect cell 2, cell 3 to cell 1 and cell 5, cell 6 to cell 4.
So that when I collapse it. It looks like this :
Cell 1 : Heading 1
...
Cell 4 : Heading 2
Currently, I am achieving this by collapsing each and every individual cell under a heading which is soon becoming tiresome.
I am looking for any plug in , script , anything that can help me achieve this.
Yes, JupyterLab 3.1 supports collapsing multiple cells at once. There is a small arrow that shows up when hovering over markdown cells with headings:
Alternatively, you could turn on syncCollapseState (Advanced Settings Editor -> Table of Contents) and use the Table of Contents to collapse multiple cells at once, as demonstrated in the documentation, here.
Though I need to warn you that this functionality is brand new and there are some rough edges (for example, moving cells may behave strange for now), though improvements are being worked on!
Related
I am using reportlab 3.6.11 with python 3.9. I've defined a table. The problem I am having is sometimes the vertical size of a single cell exceeds the vertical space of the page. I such case the reportlab crashes with this error
"Flowable <Table#0x140F309E880 4 rows x 11 cols(tallest row 1302)>
with cell(0,0) containing 'root/G2S'(546.416 x 2496), tallest cell
1302.0 points, too large on page 7 in frame 'normal'(439.27559055118115 x 685.8897637795277*) of template 'Later'"
Is there a way reportlab splits the cell that is larger than the page
Would appreciate any pointers.
I'm using Vaadin grid and have two grids which are more or less configured the same. One has a header row configured. I retrieve it by prependHeaderRow() method.
On both of the grids I enable column reordering by setting setColumnReorderingAllowed(true).
On both I'm then able to drag columns. BUT the one without header row lets me reorder the columns (see fig 1) and the other one prevents me from reordering by indicating all columns in grey-ish while dragging the column (fig 2).
Figure 1
Figure 2
Has somebody any idea why Vaadin grid is preventing my from re-ordering while header row is prepended? And if yes how I can get around it?
Kind regards
Ben
I'm trying to make a dynamic top 3 line graph that responds properly to filtering (and maybe marking too). I currently have line by:
<If(DenseRank(Sum([Timesheet].[Hours]) OVER ([Timesheet].[Team]),"desc")<=3,[Timesheet].[Team],"Others")>
I'd like it to show the top 3 lines for data available after filtering instead of top 3 for the table regardless of filters. As is, it may show no lines at all if the top 3 for the entire table are not part of the filtered data. No matter the filter I'd like to see 3 lines.
I want to display image dynamically in a list. I have two columns in a list. The first column contains some numerical values and other contains smiley icon. My requirement is, if number in first column is greater than 50, I want happy smiley to be appear in a second column in a list, and sad smiley for less than 50 number. Currently I use hyperlink column to display image in a list. And I am adding image manualy.
I am looking forward, if it is possible to automatically display image based on first column number. Something like calculated columns. Lets say,
HyperLink/Picture Formula:
column =IF([someNumer]>50, "href = c:\Test\happySmiley.ico", "href= c:\Test\happySad.ico" )
I was wondering if we could do something like this, or any other suggestion is appreciated..
You are looking for KPI indicators.
You can also find great overview here:
How to create a SharePoint KPI column
And also check similar question on SPSE:
Make all KPI Status Icons in diamond shape
can any one help me how to make cells in flex....
Suppose if i need 4 columns and 10 rows...it should display grid with rows and columns.
And i should be able to find each cell.
It depends. If you need a table-like component you can use the mx:Datagrid component or if you have custom component which you want to repeat you can use the s:Datagroup (Repeater in Flex3) with a Tile layout. You can use getElementAt() to get the cell.