6/6/2023 0 Comments Pdf basics notebook![]() > 232 return caller(func, *(extras args), **kw) opt/anaconda3/envs/tf/lib/python3.7/site-packages/decorator.py in fun(*args, **kw) opt/anaconda3/envs/tf/lib/python3.7/site-packages/IPython/core/magics/script.py in named_script_magic(line, cell) opt/anaconda3/envs/tf/lib/python3.7/site-packages/IPython/core/interactiveshell.py in run_cell_magic(self, magic_name, line, cell) > 1 get_ipython().run_cell_magic('bash', '', 'jupyter nbconvert -to latex -template citations.tplx -post pdf Orlando_Taddeo_CW.ipynb\n') Self.postprocessor_factory = import_item(new)įile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 38, in import_itemĬalledProcessError Traceback (most recent call last) Return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)įile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 844, in launch_instanceįile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 87, in innerįile "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 290, in initializeįile "/opt/anaconda3/lib/python3.8/site-packages/jupyter_core/application.py", line 225, in initializeįile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/application.py", line 713, in parse_command_lineįile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/configurable.py", line 220, in update_configįile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/config/configurable.py", line 190, in _load_configįile "/opt/anaconda3/lib/python3.8/contextlib.py", line 120, in _exit_įile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py", line 1214, in hold_trait_notificationsįile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py", line 1227, in notify_changeįile "/opt/anaconda3/lib/python3.8/site-packages/traitlets/traitlets.py", line 1264, in _notify_observersįile "/opt/anaconda3/lib/python3.8/site-packages/nbconvert/nbconvertapp.py", line 265, in _postprocessor_class_changed In the following, I report the complete output of the command I wrote above: Traceback (most recent call last):įile "/opt/anaconda3/bin/jupyter-nbconvert", line 11, in įile "/opt/anaconda3/lib/python3.8/site-packages/jupyter_core/application.py", line 254, in launch_instance A warning would say there were 'problems' with Bibtex, but nothing more. I also tried to do this according to other tutorials on the web, but even when the PDF file was indeed generated (using a slightly different nbconvert command), my citations were not captured in the text (a question mark would appear instead), and there was no bibliography at the end of the document. ModuleNotFoundError: No module named 'pdf' I get a very long output, full of warnings, but basically, the error is: Jupyter nbconvert -to latex -template citations.tplx -post pdf my_notebook.ipynb In a new notebook, also saved in the same location, I run the following command, also taken by the tutorial mentioned above: %?sh ![]() bib file is reported as follows: wine preferences by data mining from physicochemical properties},Īuthor=, Inside the markdown cells, I use the following syntax to cite a work: bib file containing the citations, taken from Google Scholar) I have the following files in the same directory in which I am running the Jupyter notebook:Ĭitations.tplx (the template to be used to include the bibliography) Such a tutorial was suggested in the nbconvert documentation, here. I worked according to the tutorial/example here. ![]() I am trying to convert a Jupyter notebook to pdf via Latex using nbconvert, in order to automatically include citations to articles contained in a separate.
0 Comments
Leave a Reply. |