question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Enforce `print_citations()` in notebooks

See original GitHub issue

All notebooks should have the cell pybamm.print_citations() at the end, to encourage people to use this command. This can be enforced using regex when running the example tests.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
brosaplanellacommented, Jan 22, 2021

Sounds good! It seems that in order to print all the citations you need to pass "[*]". I am happy to give it a go as it lines up with #1182 which I need to tackle at some point.

1reaction
rtimmscommented, Jan 21, 2021

pybtex seems to work ok now

e.g.

import pybamm
import pybtex

model = pybamm.lithium_ion.SPM()

sim = pybamm.Simulation(model)
sim.solve([0, 3600])
pybamm.print_citations(filename="test.bib")
print(pybtex.format_from_file("test.bib", "unsrt", output_backend="plaintext"))

you can output to markdown too and pick different styles

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Notebook 6.5.2 documentation - Read the Docs
A web application: a browser-based tool for interactive authoring of documents which combine explanatory text, mathematics, computations and their rich media ...
Read more >
How to Use Jupyter Notebook: A Beginner's Tutorial - Dataquest
This article will walk you through how to use Jupyter Notebooks for data science projects and how to set it up on your...
Read more >
How to Use Jupyter Notebooks - Codecademy
Jupyter Notebook (formerly known as IPython Notebook) is an interactive way of running Python code in the terminal using the REPL model (Read-Eval-Print-Loop)....
Read more >
Run Jupyter notebooks in your workspace - Azure Machine ...
Learn how run a Jupyter notebook without leaving your workspace in Azure Machine Learning studio.
Read more >
Jupyter Notebook: An Introduction - Real Python
The Jupyter Notebook is an open source web application that you can use to create and share documents that contain live code, equations,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found