#πŸ”’ Can't export notebook to pdf in jupyter ? I have the modules installed

56 messages Β· Page 1 of 1 (latest)

hushed latch
#

Hello, guys please help me if possible, i need to export my work assignement to pdf to be able to submit it, but it doesn't work, it says internal server error becasue pandoc wasn't found but when i check in my python it says it was installed and if i try to import it in my notebook it still works

hoary yarrowBOT
#

@hushed latch

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

restive heath
#

Try conda install -c conda-forge pandoc
this is from the official pandoc website

#

@hushed latch

restive heath
#

How did you install pandoc?

hushed latch
#

py -m pip install pandoc

restive heath
#

Do you have chocolatey?

hushed latch
#

nope no idea what that is ?

restive heath
#

winget install --source winget --exact --id JohnMacFarlane.Pandoc

#

Again, straight from the website

#

this is to be run in a console

hushed latch
#

yes figured

hushed latch
#

i spent 1 hour scrolling github and youtube for solutions and didnj't think to look there πŸ’€

restive heath
#

No problem

#

I'm just saying from the website to show Im not trying to give you a virus or something

hushed latch
#

still doesn't work however

restive heath
#

Did winget work?

hushed latch
#

the command worker

#

worked

#

it installed

#

i restyarted jupyterlab

#

but still can't export

restive heath
#

Same page?

hushed latch
#

yup

#

hmmm

#

i just noticed smthg

restive heath
#

What

hushed latch
#

when launching jupyter

#

i run from cmd

#

py -m jupyterlab

#

i saw this

restive heath
#

Restart computer maybe?

hushed latch
#

sure

#

brb$

#

i mean

#

at least it's not the same error anymore

#

the new one is scarier πŸ’€

#

looks like im missing some latex packages

restive heath
#

@hushed latch This is the best I could find

hushed latch
#

i am following instructions

#

thanks for trying to help me !

#

I found a temporary solution if anyone ever finds this thread

#

you can download as html

#

then try to print

#

and then save as pdf

crisp verge
#

be sure to double check the results cause sometimes the formatting just goes way off for some reason

hushed latch
#

I emailed my professor the notebook with apologies and explaining the problem

#

i think he will be understanding coz it's not really my fault

crisp verge
hoary yarrowBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.