-
Notifications
You must be signed in to change notification settings - Fork 0
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
Print option? #7
Comments
Thanks for opening this. The output is implemented in SVG format, so it should be also possible to add an option to export it to a standalone file (HTML, SVG). Once HTML/SVG is exported one could use browser's ability to convert anything into PDF if needed. Speaking of which, one could also export entire notebook/file to PDF using nbconvert's webpdf (see https://nbconvert.readthedocs.io/en/latest/install.html). How do you imagine the export function should be exposed? |
What version of JupyterLab are you using? Or are you using Jupyter Notebook? Did you try reloading/restarting it after installation? |
JupyterLab v3.6.3. This works fine inside lab. The HTML, PDF, etc, look like the screenshot. |
Sorry, I did not get that this is a screenshot of exported notebook. Does it also happen with webpdf export specifically (as compared to standard pdf export)? |
Just gave it a try and it came back with the same object pointer kind of result. I ran:
|
Thanks for testing! I will take a look. Last suggestion: are your notebooks trusted? Could you try trusting them manually (Trust notebook from command palette, then save) before exporting? |
It says "Notebook already signed" |
Any update here, I just see a reference object when I try to show my dag. |
I opened a draft PR #10 - in principle it works but in practice it either only renders 50% of the time, or there are problems with sizing (depending on whether the model gets updated with delay/in update method or in render method): The problem is that the dagitty internal logic to resize only triggers after the node is attached. This will require some method to make dagitty resize to the image synchronously. I am not sure how svg will render in standard PDFs but it certainly does well html and webpdf export. |
I'm wondering if it's possible to make the output cell renderable to export formats like HTML, PDF, etc. Essentially, can we turn the display into SVG, PNG, or JPEG, and embed them?
The text was updated successfully, but these errors were encountered: