vscode-jupyter
vscode-jupyter copied to clipboard
Feature request (FR): ability to print python interactive window content
Hi,
It'd be great if we could print the entire python interactive window content with 3 options:
- cell inputs hidden
- cell inputs shown collapsed
- cell inputs shown expanded Great for generating ad-hoc reports for business and/or saving output for oneself while algo designing/prototyping.
Ideally, this extension would first implement hide input cells option, i.e. the 3rd one along with already existing 2 (collapse/expand input cells), so that printing option would simply just print what's already shown in the interactive window. Input cells are informative, but would look unprofessional in a report produced for business folks.
This feature would be one great enhancement! Thanks in advance.
Environment: Windows 7 SP1 64bit Home Premium VSCode v1.33.0 Python 3
The line "Great for generating ad-hoc reports ..." applies to all three points and not only to the 3rd one as incorrectly shown P.S. Can't edit the original post for I'm using FFox - admins, feel free to edit (just insert a blank line after point 3 to make it new paragraph) and delete this msg. Thanks.
Perhaps a feature to export the content in the Interactive window into PDF files?
@ronglums There are plenty of pdf printers available, I have one installed, so classic printing would be pdf export as well. But if pdf export would be easier to implement for whatever reason, I'd be fine with that too.
I can't find a print command in jupyter itself, but I can find Print Preview. That opens a new tab with just the cells and output in it. From there I suppose you use the browser's print functionality. Otherwise exporting to PDF is on our roadmap.
@greazer I'm looking for print functionality in VSCode and not jupyter. Optimization and other types of runs I do in my work generate tons of output (charts and calculations) that would not work in a browser. Print functionality is the weakest part of VSCode at this point. Most Data Science work requires runs output to be captured either for analysis or data reporting, and it's a shame that VSCode does not have that.
I guess most people that add features to VSCode are devs, and they don't have a need to output data analysis or data reports as often as DS people do - hence this feature request is left ignored.
@greazer Additional info if helpful: Currently, if I need to do a data analysis with results outputted and captured, I have to use Atom editor and pweave which redirects output into an html file which I then pdf print. Pweave - Scientific Reports Using Python ( http://mpastell.com/pweave/ ).
Now, pweave is abandonware and has bugs that author won't fix, but it's better than nothing. Hopefully, the way pweave works will give VSCode team some ideas. I certainly hope that capturing output will be implement in a far more user-friendly way compared to pweave which is script/command-line driven.
this would be better in a separate extension