Displaying Plotly figures in full screen in Jupyter notebooks - jupyter-notebook

The bounty expires in 7 days. Answers to this question are eligible for a +500 reputation bounty.
Mikko Ohtamaa wants to draw more attention to this question.
I have large Plotly figures and tables in my Jupyter Notebook and Sphinx-based documentation. Because the documentation page is already crowded, I would like to give the user an option to
Display these figures in a full-screen pop-up
or
Make tables scrollable instead of compressed columns, as the table layout with many columns do not work when embedded on a page
An example of a broken layout:
Does Plotly.py offer ways to achieve this easily? If it doesn't, can I somehow include external JavaScript on the generated Sphinx documentation page for the same effect?

Related

Permanently linking sections of two jupyter notebooks

I have two jupyter notebooks. The middle sections of both are identical, being code to create charts. But for various reasons, the first sections (data inputs) and end sections (the charts themselves) are different.
I want to link the middle sections, so when I change the code for the charts, I can do it in just one file, and the changes will automatically show in the second.
%%writefile in one file and %load to recreate the middle sections works, but isn't a good solution, as I am often revising the charts. Is there a better solution?

Create a Menu inside a Menu in flexdashboard - R

I'm creating a Dashboard in R with flexdashboard. I have a drop down menu (See Image 1). I want to create a menu inside the menu (See Image 2). It is possible with this library?
Unfortunately, there is no easy way to do this just with the regular flexdashboard commands. The only alternatives I see:
Shiny + Flexdashboard
You can combine Flexdashboard with Shiny in order to add this submenus (consider this possibility).
Tabsets
If you don't need to show so many charts/plots in this sub-submenu's pages, a possibility that might suit you is combining the dropdown menu option with tab-panels in the main page. Please check Flexdashboard Layout documentation (btw, it's also possible with shiny)
Editing Flexdashboard CSS/HTML code
I am not really sure about it but, as you can change the color or resize the text editing the CSS-HTML code, you should be able to do what it (remember you can add your own custom CSS file). Try to look for web page front-end solutions to what you are looking for and try to edit the code by your own. Maybe this would help you
Sorry for this poorly edited answer, this is my first answer in stackoverflow.

Application Insights Metrics Explorer annoyances

"Metric Explorers" on an Azure portal dashboard are quite flexible.
To configure them is, however, a bit painful at times.
With the terms in above image:
How do I change the order of my charts within an explorer?
How do I copy a chart or a whole explorer?
Is there a textual definition I can get or give? Is there other software for a better editing experience?
How do I change the order of my charts within an explorer?
Unfortunately there isn't a direct way to reorder the charts within an explorer. As a workaround you could however, delete them and add them again so that they appear at the bottom. Remember everytime you click 'Add New Chart', it will add it at the bottom.
Also please note that all graphical charts (Line, Area and Bar) appear above whereas a Grid chart will always appear at the bottom. So here's an even simpler hack that you could use: If there's any chart that you want to send to them bottom, change it's type to Grid and then change it back again. It'll get pushed to the end.
How do I copy a chart or a whole explorer?
You can click on More and then click Save Favorite which will save the whole metrics explorer blade (including all custom charts). You can give it a name and even save as a copy to create multiple copies of the whole explorer.
To access favorites, you'll have to go to the Overview tab and click on More followed by Favorites again. Favorites can be shared as well as personal.
Is there a textual definition I can get or give? Is there other software for a better editing experience?
There isn't a textual definition that you can provide for the charts. If you'd like to see this feature, you can add to the user voice or open an issue on github.
There isn't a software available for creating charts in the metrics explorer blade. However, there are alternatives for visualizing and querying data. You can take a look at Analytics if you prefer writing queries to filter insights and telemetry data. It has a very easy-to-learn query language which can help create meaningful charts very easily. There is a lot of tooling and support to push these charts to Power BI as well.
Hope this helps!

Hide or insert image (logo) in pdf using iTextSharp

We print pdf provided by the company and merged it with data from our C# ASP.Net 3.5 Web application using iTextSharp. This works well but we have been asked to either print the form with or without the company logo depending on the user preference.
Should I use a pdf with the logo and hide it or use a pdf without the logo and add the logo to it?
I have found numerous way to add a logo to a pdf but nothing on hiding images. Because the logo could be having different size and be in a different location I would prefer to hide it when needed instead of adding it. Can we hide images from pdf without removing it? What would be easier?
Or should we just use 2 versions of each forms, one with the logo and another without?
UPDATE: In a nutshell I just want to have your opinion to what way would be best. Use a form without a logo and add it when needed or use a form with the logo and hide it when needed. Thanks
FINAL UPDATE: Some people gave good answer but I see no way to accept their answer. Can someone help me?
Because no one answered my question I selected one of the comment as "the" answer. Thanks mkl!
You can store data private to your application in PDFs, e.g. logo size and location in the case at hand (cf. this answer on PieceInfo structures). I would, therefore, recommend that you create the PDFs without the logo but store the size and location for a logo in such a PieceInfo dictionary. If adding a logo is required later-on, use that information to properly place the logo

Drupal Views overflow

I have a Drupal 7 / Views question...
I have a site with some data reports displaying in various graphs/ gauges etc. I also have a "Data" page that shows all of the data used so the user can look through it and/or even download it. My problem stems from the views table overflows past the screen on the right with data. This in itself is not a big issue, but I was wondering if there was a way to contain the view inside a fixed size box/container that is scrollable. Much like a text box.
Again, not that it would help the functionality but sure would make it look nice and clean.
Thank you in advance.

Resources