Print Azure Data Studio Notebook - printing

Azure Data Studio. I love it. Wherever possible I am working in ADS instead of SSMS, gradually moving stand-alone SQL scripts to notebooks. Notebooks are so useful. Rich-text commenting of code using markdown, making a great way of documenting scripts.
But how to print it?
I loaded the notebook into notepad. It is a JSON file. So I am thinking maybe I can do some kind of XSLT transform. Seems that JSLT may be way to go. But there has to be a better way?

You can open the notebook (its a .ipynb file) just like any other Jupyter notebook in Jupyter lab and print from there. Works for me.

Related

How do you display a Neo4j graph in Jupyter lab or notebook?

Someone pointed me to this link:
http://nicolewhite.github.io/neo4j-jupyter/hello-world.html
It looks like it used to work before, but something got updated in py2neo or neo4j...
The repo is at:
https://github.com/nicolewhite/neo4j-jupyter
Does anyone have this working?
I've encountered 2 problems:
The methods called are removed from the API (I've tried installing py2neo 3 (an older release) - but it would mess up something in jupyter.
I've tried changing the script itself to use hard coded strings, but the jupyter lab notebook refuses to serve up the vis.css and .js resources (returning 403 forbidden). Maybe I didn't put those files in the right folder?
In the meantime, I guess I'll have to make do pasting a screenshot from the neo4j web interface into the notebook.
Will keep you posted if I make any progress on this.
Perhaps it's not suitable for you, but i hope my Hack will barely measure up to your problem.
stop Neo4j.
Download
7zip
Javinder
jbe (Java Bytecode Editor)
Search for two entries using Javinder.
Content-Security-Policy: frame-ancestors 'none'
X-Frame-Options: DENY
Open .jar with 7zip, extract and delete the corresponding file.
Open the extracted file with jbe and delete the corresponding entry (please note that the operation will be reflected immediately).
Write the modified file to .jar using 7zip.
start Neo4j
Open jupyter notebook with chrome.
Open Neo4j with iframe tag.
Do your work.
right click and print.
smpl file.
https://gist.github.com/nibuiro/bb7d14a6e6b87133ed74e04b4fd1403a

HH.EXE can show HTML/JPEG files

Apparently, one can view HTML and JPEG files (possibly others, didn't try), with HH.EXE, i.e. Microsoft's CHM file viewer.
Try "HH somefile.html". It was tested on Windows XP and Windows 10. Is this documented anywhere?
As far as I know this is not documented public but it comes as little surprise.
HH.exe is the HTMLHelp executable and associated with *.CHM files. It's just a shell that uses the HTML Help API and is really just hosting a browser window. That is the reason why HTML, JPEG, GIF and animated GIF works. Microsoft Help MVP's always knew that but it's not really useful. Example:
PS D:\_temp> hh.exe -800 images\welcome_small_big-en.gif
HH.EXE is not single instance, if you open a CHM or another file three times using HH.EXE, then three help windows will appear.
Several client-side command line switches are available to help authors that are part of the HTML Help executable program (hh.exe) and therefore work when HTML Help Workshop is not set up.
For further Informationen see my site at HTMLHelp command-line.

Adding server-side script and RSS feed to Sharepoint 2007?

I am investigating if the functionality of some CGI scripts written in Perl that we run on a web server can be migrated to our Sharepoint 2007 server (MOSS).
The CGI scripts are not complicated. Basically they display and process contents of files that resides in the network file system.
For instance one script just displays the contents of small text files that are being added to a specific folder.
These files are part of a production process and cannot be moved into a Sharepoint document archive.
The CGI scripts are being used to give an overview on what is "new in the queue" for this production process.
When the production process has finished, it removes the files from the folder. But new files may arrive to the folder at any time.
I have done some investigations and found that using a "Data View" web part would give possibilities of displaying the data in a good way.
The files need to be transformed from text to XML format, before some xslt could make it look good in a Data View WP. I guess that could be done by some kind of server-side script?
But how and where do I add such a script to Sharepoint?
Would it be a good idea implementing this as an RSS feed instead? But an RSS feed would also require a server-side script, wouldn't it?
I am new to Sharepoint development and would appreciate any useful advice.
Why not just write a Custom WebPart to read the content of those text files and display them. This way you wont be making changes to those text files.
Note : The link to custom Web Part is my blog. There are tonnes of other articles in the net :)

Does anyone know of an iPaper alternative?

We would like to display office documents in the browser (DOC, PPT, XLS and PDFs). The iPaper API from Scribd is perfect but ideally it would be installed on our server. Open source is a preference but commercial is ok. Looking for an easy, server side, good looking, minimal interface flash frontend viewer.
Thanks!
You can use Google Document Viewer in embedded mode. It cannot be installed on your server and your documents will have to be accessible from the web.

LaTeX: Are there any web frontends available?

As of now the workflow is something like, I import an SVN or a CVS repository and then compile a document locally on my machine to get either a ps or a pdf file. But I was wondering if there is a Web front-end to do all the stuff, like for instance, an editor using which you can edit the file online and then download just the pdf file by compiling it?
Any suggestions?
http://www.scribtex.com/pages/index
http://code.google.com/p/latex-lab/
latex-lab will build on top of the google apps editor base...
scribtex is hosted only it looks like.
Another to add to the list is TeXonWeb.
If you mean online LaTeX compilers, then there are two I know of - at baywifi.com (to PDF) and at ScienceSoft (to several formats). Haven't seen any full editors, though.
There is a CMS based on Latex out there at www.osreviews.net.
The best site I found to produce PDF from LaTeX online is PC Shows.
Verbosus offers an Online LaTeX Editor that supports PDF preview, HTTPS, syntax highlighting, code completion, templates, etc. (Additionally it offers an editor for Octave/Matlab)
This is less of a web-based interface than a simple drag-and-drop cgi script that converts latex syntax to a graphic... www.forkosh.com/mimetex.html
latex-online is a simple open source web service that compiles latex sources/public git repos and returns pdf's. It has both a simplistic web front-end and a command-line tool for interacting with the service - you might find it interesting.
One rather new possibility is https://texlive.net/
You can either interactively edit your documents or you can pass your document via the url to it. E.g. a simple hello world document can be constructed as
https://texlive.net/run?%5Cdocumentclass%7Barticle%7D%0A%5Cusepackage%7Bamsmath%7D%0A%5Cbegin%7Bdocument%7D%0AHello%20world!%0A%5Cend%7Bdocument%7D

Resources