microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.54k stars 899 forks source link

Converting Jupyter notebook to HTML for presentation, using the same style as Azure Data Studio #13910

Open tammandres opened 3 years ago

tammandres commented 3 years ago

Dear developers,

I really enjoy using Jupyter notebooks with SQL kernels for my work. I recently wanted to save my notebook to HTML format for presentation to colleagues -- but I could not find a way to save it in the same style that Azure Data Studio uses.

For example, if I switch to Python kernel and type "!jupyter nbconvert my_notebook.ipynb --to html --template classic" to a new notebook cell, I can save my notebook in classic Jupyter style, but not the Azure Data Studio style.

I would prefer the Azure Data Studio style as I just feel it is prettier for SQL. Is there currently any straightforward way to do this? I hope I have not overlooked something obvious!

Many thanks, Andres

corivera commented 3 years ago

@tammandres Currently we don't have any functionality to export an ADS-style notebook as html. The only way to export the notebook as html would be with that jupyter convert command you're using.

tammandres commented 3 years ago

Thanks for getting back to me! Looks like it's not possible before a feature is added. However, I was wondering if the Azure Data Studio style specification is available in some easily usable format? The Jupyter nbconvert allows for custom style if I modify their basic template, and maybe it would not be too hard to modify it according to ADS spec ...