Skip to content
New issue

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

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

Already on GitHub? # to your account

nbconvert with schemdraw not working #6636

Closed
TRiedling opened this issue Nov 24, 2022 · 4 comments
Closed

nbconvert with schemdraw not working #6636

TRiedling opened this issue Nov 24, 2022 · 4 comments
Labels
status:Needs Info status:Needs Triage Applied to issues that need triage

Comments

@TRiedling
Copy link

I use nbconvert with different notebooks and it works.
But when I export a notebook with nbconvert in which I use schemdraw I get the following error:

...
File "/home/torsten/.local/lib/python3.10/site-packages/nbformat/validator.py", line 503, in validate
    raise error
nbformat.validator.NotebookValidationError: data.cells[{data__cells_x}] must be valid exactly by one definition (0 matches found)

Failed validating <unset> in notebook['data']['cells']:

On instance:
<unset>

My notebook:

import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing() as d:
    d+=elm.Resistor()
    d+=elm.Line().down()
    d+=elm.BatteryCell().left()
    d+=elm.Line().up()

How I use nbconvert:

jupyter nbconvert --to pdf  test.ipynb

I'm using:
Jupyternotebook 6.4.12
Python 3.10.6
on Linux Mint

@jupyterlab-probot jupyterlab-probot bot added the status:Needs Triage Applied to issues that need triage label Nov 24, 2022
@RRosio
Copy link
Collaborator

RRosio commented Dec 1, 2022

Hi @TRiedling, thank you for submitting this issue! Is this the only library that you find you have issues with using NbConvert? If so, it is likely that this issue would be better addressed in the schemdraw repo.

@RRosio
Copy link
Collaborator

RRosio commented Dec 8, 2022

Hi @TRiedling, just following up with you on this issue, is this problem still occurring? If you could share whether or not this library is the only library that results in this issue as mentioned would also be helpful.

This issue might also be better addressed in the nbconvert repo.

@RRosio
Copy link
Collaborator

RRosio commented Dec 15, 2022

Hi @TRiedling we're closing this issue as we haven't heard back. If you can provide additional information please feel free to reopen this. Thanks!

@RRosio RRosio closed this as completed Dec 15, 2022
@gchhablani
Copy link

I am facing the same issue. I do not fully understand what the problem is and the error message is not descriptive enough for me to be able to fix it. Can someone please help?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 18, 2024
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
status:Needs Info status:Needs Triage Applied to issues that need triage
Projects
None yet
Development

No branches or pull requests

3 participants