Save iPython Jupyter Notebook Widgets to PNG/PDF/JPG/GIF - widget

I was just wondering, if there's some way how to automatically save the content of the cell (including the cell output) to a PNG/PDF/JPG/GIF. I'd be happy with any of the alternatives.
For documentation purposes I'd like to save the state of a VBox/Hbox containing multiple iPython Widgets. There are many possible combinations of the widgets settings, I can iterate over these settings with my code, but I'd like the corresponding visual setting of the widgets to any of the possible above mentioned formats for documentation purposes.
I've looked into html2canvas, but I'm not sure if it's the right solution for me. As well, using the ipython convert to HTML doesn't output the widgets for me.
Many thanks in advance for any hint.
Regards
Josef

Related

Tool to Quickly create an unordered list with url links

first time here, forgive my ignorance.
I am hoping a tool or process exists where I can plug in a list of titles and urls, and it spits out an html document with an unordered list with hyperlinked titles.
The use case here is that I'm building a website to display a digital version of a print magazine. Each issue requires a contents list in the sidebar, which I am creating with html. It's a fairly tedious process at the moment, and I'd love to find or create a tool that could make it quicker (particularly as I'll be handing it off to someone else on the team at some stage)
All ideas gratefully accepted
Not exactly sure I understand your question correctly. But if you want to iterate through a list of something you cannot do it with HTML alone as you would need JavaScript.
Have you tried Google Sheets? You can plug in your data, format it how you like and then export it as .html file.
Best,
Chris

Create simple gui for changing json variables

i have no real programming experience and while i hope you can help me with very simple tutorials / solutions i am also willing to learn something.
I want to create a gui that helps the user change settings of an JSON file (in this case) without the need to edit it directly. In detail it should do:
edit predefined variables
show, add, remove lines at parts of the file and edit their variables
simple user input (little text / numbers) / choose from a dropdown
if possible little questionmark-icon for each variable that will show explanations as a hover box
save changes + start an exe
would be great if there already is a editable script/solution with this features
i also found that Qt Designer is recommend very often - do you know tutorials can help me with the things i want to do?
thank you
I found a QJsonModel for Qt5 with a little example how to use it. Through this model, a part of the problem has already been solved.
For adding and delete items I suggest you familiarize yourself in Qt Model/View Programming. Here is a Model/View Tutorial.
For saving you should look at QJsonDocument Class.
To start an application QProcess::start() and/or QDesktopServices::openUrl() are your friends.
Good luck

How would I add identical code to hundreds of html pages at once?

So I have a few hundred pages that need their navigation bars updated. I've looked in sublime text, aptana, notepad++ and used the search here but wasn't able to find a simple solution.
All I wish to do is add to the following code so it says
Home
Help
Other
Rather than
Home
Help
I'm using Windows if this makes a difference. I'm aware of the built in find and replace features of aptana and sublime etc but it seems unable add new code to those 100 pages which would be preferred over using any tricks or browser hacks, but I will be willing use those tricks if absolutely necessary.
Due to certain requirements, I'm not able to use php includes ,javascript or jquery and similar . Thanks for any suggestions in advance.
With Sublime Text you have the option to find in all files:
You can then choose a folder to search in, what text to search for and what to replace the found text with.
All files in the chosen folder will be searched.

Typesetting Math using MathJax for IPython Notebook Web page

I chose to learn to write mathematical expressions in IPython Notebook and sat to explore learning resources. I found this official link.
I reproduced the whole tutorial on my IPython NoteBook locally and then published it on my website. I also explained the whole struggle I went into while trying to achieve this in my blog post.
Unfortunately, whatever I do, I am not able to get the web page render/display the math expressions at all. I am not sure why the whole notebook failed to show the display of equations when the last couple cells gave the right output.
I also checked both the html codes of the source web page and my web page to find that the <script> code is where it has to be in mine.
I do not know JavaScript and LATEX at all! Can someone help please!
Again, this is the Source link.
And this is my webpage where I copied the source tutorial.
Also, is the ipython nbconvert the best and the right way to convert .ipynb files into html?
The problem you face is that currently pandoc (the document converter) strips raw latex when converting the markdown cells to html, see docu. Math in pandoc needs to be inside $..$ or $$..$$ delimiters.
The last couple of cells have explicit $s and thus convert fine. The other cells don't have this latex markup and thus get stripped during the conversion. You can try to embed the not working equations in $$s to prevent their removal (not tested).
There is a very recent PR to pandoc, to not strip raw latex when converting to html if the --mathjax option is supplied. Nevertheless, it will take some time to get this feature available unless you build pandoc from source.
And yes, nbconvert is the right (and best) tool to convert .ipynb files to html!

Good PDF to HTML Converter for Mobiles

We are having Multiple PDF which have account tables and balance sheet within it. We have tried many Converters but the result is not satisfactory. Can anybody please suggest any good converter that would replicated the contents of PDF to Exact structure in HTML. IF any paid Converter is there please suggest me .
This is the PDF we want to convert and Show in html "http://www.marico.com/html/investor/pdf/Quarterly_Updates/Consolidated%20Financial%20Results%20-%20Q3FY11.pdf"
Have you looked into this? http://pdftohtml.sourceforge.net/
It's open source as well, so it's free and can be modified if necessary.
There's even a demo showing the before PDF and the after HTML version. Not bad if you ask me.
If you're having issues specifically with tables in PDFs, perhaps the issue are the table themselves and whatever program is being used to generate them. Not all PDFs are created equal.
ALSO: Be aware that all PDFs that I've created and come across over the years have had lots of issues when it comes to copy/pasting blocks/lines of text that have other blocks/lines of text at equal or higher height on any given page. I think Acrobat lacks the ability to define a "sequence order" of what block is selected after what (or most programs don't use it properly), so the system sorta moves from a top-down, left-to-right way of selecting content.....even if that means jumping over large blank areas or grabbing lines from multiple columns at once when you wouldn't expect it. This may be part of your tabular data issue. Your weak link here is the PDF format itself and I think perhaps you may be expecting too much from it. Turning anything into a PDF is pretty much a one-way street, especially when you start putting lots of editable text into it.
Have you tried http://www.jpedal.org/html_index.php - there is also a free online version