Notebooklm or Obsidian to Anki flashcards

Problem: NotebookLM generate automatically good flashcards, but doesn’t have a good scheduling algorithm for learning and memorization. Solution: export flashcards to Anki.

Steps:

  • Add source to NotebookLM
  • Optional use a prompt to make flashcards
  • Export to CSV
  • Import flashcard from Anki
  • Fix math formulas
    • Select all notes with Ctrl + A
    • Find and replace
    • In the first field, Find: \$(.*?)\$
    • Replace with \(${1}\)
    • Check “Treat input as regular expression”

Bold Formatting

When GEMINI makes notes, it usually bold keyword with ”**” however Anki uses a different bolding format, so the translation must done as:

  • Select all notes with Ctrl + A
  • Notes > Find and Replace
  • In the first field, Find: \*\*(.*?)\*\*
  • In the second field, Replace: <b>$1</b>
  • Check “Treat input as regular expression”

Wrong type for flashcards after importing

I still need to find a way to fix this, but when importing notes generated by GEMINI, some notes will not be cloze. But when importing you import everything in only one type. Until now my solution is:

  • In the search bar: "deck:My Deck Name" note:Cloze -{{c1* to find cloze notes that do not contains “c1”
  • Select all notes wtih Ctrl + A
  • Notes > Change Note Type and switch to Basic