Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to print (or export to PDF/HTML) an XPath Notebook? #15

Open
jeverett-syl opened this issue Feb 28, 2024 · 2 comments
Open

Comments

@jeverett-syl
Copy link

Is it possible to print (or export to PDF/HTML) a XPath Notebook?

I can find some discussion online about printing (Python) Jupyter Notebooks in Visual Studio Code, but I don't see the referenced Jupyter Notebook Export artifacts in the XPath Notebooks.

Is export or printing something not available in the XPath Notebook implementation? Could it be?

If not but possible, it'd be a great feature -- it'd be handy to be able to use an XPath Notebook put together a bunch of markup explanation, and evidentiary XPath examples -- and be able to easily dump it all to a portable format to hand off to others (support, trainees, etc.)

Thanks!

@pgfearo
Copy link
Member

pgfearo commented Mar 1, 2024

A print feature isn't supported at the moment.

It was previously possible to create Jupyter Notebooks in VS Code (with an 'ipynb' file extension) and then just specify XPath as the language and my extension would be used as the kernel.

Unfortunately it seems there's a VS Code bug (or more likely the API has changed) now so my extension is no longer detected as a Kernel. I will investigate further.

@jeverett-syl
Copy link
Author

I was able to cut and paste my notebook content to a Word doc (with some tables) and maintain a lot of the nice formatting. A bit tedious, but salvageable. Some kind of print/export, in the future, would be great if possible.

Thanks for your work on this project, especially given the challenges of VS Code upstream API changes that undercut your features, like the result node navigation. No doubt there must be some frustration trying to hit a moving target. Regardless, the XPath Notebook plugin is such an amazing feature -- it's often a challenge to debug and communicate XML related issues and an XPath Notebook bring everything together so nicely.

Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants