Writing my Notions and notes these past months as part of my revamped personal knowledge management system, I realised as the collection grew that using the collection as a thinking tool also requires remembering more of what is in there. Not to make the notes superfluous but to have more top of mind material that serves as a starting point in interacting with the notes I have, as well as to be able to weave that more easily into current tasks and work. I also expect it to aid creativity, as a large chunk of creativity is recombination of previous elements, and remembering more elements lowers the threshold to new combinations.

Both in Andy Matuschaks notes and in this long article by Michael Nielsen about his use of Anki, spaced repetition is discussed in the context of note taking, and it got me thinking (I write ‘thinking’, but it was as much working through the mentioned material and distilling the concepts key to me from it, as it was chewing on it mentally and adding that to those same notes. Thinking is more interacting with my PKM, rather than sitting down looking into the middle distance as per Rodin’s bronze).

Anki is a tool (on laptop and mobile), that allows you to train your memory with flash cards and spaced repetition. I’ve used it in the past, e.g. to increase my vocabulary in French and to better read cyrillic script, but not with much energy or effect. It felt uncomfortable to be using card decks made by others for instance. Making my own flash cards from scratch always seemed a daunting task as well.

With my now much better set-up of notes however I have a great starting point to create my own decks of flash cards. As I am obviously not the first one to realise the potential of notes collections for flash cards, there is already an Obsidian plugin that pulls out questions and answers from my notes, and puts them into Anki. It comes with a wiki that documents how to set it up for yourself, including how to mark various types of questions and answers in your notes.

The key feature is, that I can add a question and its answer as a part of any note, and the plugin will pull it out and export that to Anki. It means I can e.g. end a note on three key aspects of distributed applications, with an Anki question and answer about those three aspects, which will get exported to Anki. Better still, I can add multiple questions in different forms about the same thing to that note, e.g. a follow-up question for each of the three aspects. Having multiple versions of basically the same question means I can phrase them for different memory hooks in parallel. This will enhance my own understanding, and allows me to place notions in specific contexts for instance.

I have now installed the Obsidian to Anki plugin in Obsidian, and the Anki Connect plugin in Anki (so it can ‘listen’ for automated input).

Some things I hope this will yield benefits for is:

  • making it a more deliberate choice what I want to remember long term
  • making it easier to remember the basics of a new field of interest
  • making the effort to remember a habit
  • improving my skilled reading
  • using remembered material to better connect new notes to the existing corpus
  • making it easier to internalise new / relatively new material

The way I’m approaching it is to have all my flash cards, whatever the topic, in the same single deck. This as I see my notes collection and all the stuff I remember as a interlinked network of topics and material. Splitting it up in some sort of thematic structure precludes a whole range of potential connections and associations, and is artificial in that it makes a current perhaps logical distinction the norm forever.

The coming 12 weeks or so I’ll work on two habits:

  • adding questions to my notes as I work on those notes, and
  • using Anki daily to review those questions.

4 reactions on “Connecting my PKM to Anki

  1. Having moved to a new laptop, the connection I had between my notes and Anki stopped working.
    Obsidian, the note taking app I use, has a plugin that allows me to generate Anki flashcards directly from my notes. It uses Anki Connect, an Anki plugin that exposes an API at localhost:8765. That worked fine on my old laptop, when I first connected Obsidian to Anki. On my new laptop it did not work, with the Obsidian plugin saying it could not connect to Anki. Anki Connect is active though.
    Obsidian has a developer view (In the menu View go to Toggle developer tools), with a tab Console that shows what’s going on under the hood.
    There I found the error message Access to XMLHttpRequest at 'http://127.0.0.1:8765/' from origin 'app://obsidian.md' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header has a value 'http://localhost' that is not equal to the supplied origin., which meant nothing to me but allowed me to search online for more background.
    I run MAMP Pro, which provides me with a local web and mysql server on my laptop. The error to me implied MAMP was refusing the connection based on the source of the request: an app.
    The suggested solution I found was changing the server settings to be less strict, in the Directory Directive of MAMP’s Apache webserver settings. I can do that directly in the Apache httpd.conf file in /MAMP/conf/apache, and I can do that in the MAMP interface, selecting localhost and the Apache tab, which has a field “Additional parameters for the Directory Directive”.
    Neither solves the issue however, and the error message remains the same. Then I shut down MAMP entirely, to see what happens then. The same error occurs. So, the request was not being handled by MAMP at all!
    MacOS 11.0 Big Sur comes with Apache 2.4 pre-installed, so I looked there (in /etc/apache2)her. Anki Connect doesn’t use that Apache instance either.
    Then I went back to the Anki Connect plugin itself. Getting to the files of that plugin is best done through Anki itself, selecting the Tools menu, and Add-ons. Then in the screen select Anki Connect and the View Files button. Anki’s plugin files are stored in folders not named after the plugin but after the plugin identification number, so you won’t find anything by searching your file system with the plugin name. There’s a file there config.json, which can also be accessed directly in the Anki add-ons screen through the Config button. And there at the bottom it has the ‘webCorsOriginList‘ that only has localhost which corresponds with the console error message at the start. I had looked at this config file already before going on a wild goose chase in MAMP and Apache settings. Seeing it again having exhausted the previous paths, it hit me in the face: I need to expand that list. And at the same moment I realised I had done that on my old laptop too, because it clearly said so in the installation guide. Duh! Having done what the manual says, it works again.
    The issue had nothing to do with local webservers, Anki and Obsidian can do it on their own, if only I had followed the documented settings.TIL, and definitely not for the first time: Stop and think first. Read the manual. Would have saved me significant time today.
    Blogged (and noted) as a reminder.

  2. De allereerste Nederlandstalige meet-up van Obsidian.md gebruikers was interessant en leuk! We waren met z’n vieren, Sebastiaan, Wouter, Frank en ik, en spraken bijna 2 uur met elkaar. Leuk om te vergelijken waarom en hoe we notities maken in Obsidian, te horen over de (vaak lange) historie die iedereen heeft met notities schrijven, met de hand of in een reeks tools. Het gesprek ging vooral over onze werkwijzen bij het toevoegen van notities, en in mindere mate over het gebruik van die notities.
    Dat gebruik is zeker iets om over door te praten een volgende keer, en voor mezelf om bewuster bij stil te staan. Ik merk dat ik nog vooral in de modus zit om mijn collectie voldoende te laten groeien, en minder in het bewust raadplegen van mijn materiaal als ik met een onderwerp aan de slag ga, of iets wil maken. Tegelijkertijd merk ik wel dat ik nieuwe verbindingen leg tussen notities, en (omdat ik mijn oude weblog postings tot notities verwerk) tussen oudere en nieuwere gedachten waarover ik heb geblogd. En dat ik in het afgelopen half jaar een paar blogpostings en twee presentaties heb gemaakt die direct voortkomen uit het samenbrengen van bestaande conceptuele notities. Dat soort productieve uitkomsten is al heel nuttig, maar ik ben nog op zoek naar het een grotere rol geven van mijn notities in het reflecteren op een onderwerp, in het nadenken over vragen etc. Dit allemaal ten aanzien van conceptuele dingen dan, want m.b.t. mijn uitvoerend werk zijn mijn notities het werk als het ware.
    Daarvoor is in ieder geval regelmatige blootstelling aan mijn notities nodig denk ik. Enerzijds door beter te weten wat ik er in heb zitten, en anderzijds door me in mijn workflow vaker bezig te houden met wat ik over een thema al heb bedacht, verzameld en geschreven. In de afgelopen weken ben ik daarom meer index-achtige notities gaan maken, emergente outlines. Door anderen wel maps of content genoemd, ik noem ze olifantenpaadjes. Zo’n notitie verwijst vooral naar bestaande notities, met wat zinnen er bij waarom ik die links bij elkaar plaats. Zo’n verwijs-notitie helpt me makkelijker de weg te vinden in mijn digitale tuin. Ik maakte eerder al emergente outlines maar die waren niet op navigatie gericht maar op het samenbrengen van notities in een ruwe verhaallijn, dus meer op schrijven gericht.
    Een andere manier van blootstelling is via spaced repetition de inhoud van mijn notities voorbij laten komen, in de vorm van Anki vragen bijvoorbeeld. Sebastiaan liet gisteren zien dat hij een plugin aan het maken is die dat binnen Obsidian zelf doet, niet gericht op vragen of onthouden, maar gericht op herlezen.
    De belangrijkste ingang voor hergebruik van mijn eigen materiaal is vaker mijn notities raadplegen als ik met een vraag aan de slag ga. Te veel leun ik op mijn eigen actieve herinnering, en dat leidt vaak tot reconstructie van dingen terwijl ik die al keurig heb uitgewerkt in mijn notities.
    Wouter schrijft veel met de hand, en liet zien hoe hij al die handgeschreven pagina’s scant en in zijn Obsidian vault opneemt. Op die manier kan hij ze raadplegen en er naar verwijzen als hij er dingen uit tilt en in een notitie opneemt. Dit is een interessante manier. Al schrijf ik veel direct digitaal, ik maak ook veel handmatige aantekeningen, en er ligt hier een stapel A5 notitieboekjes. Nu heb ik ook een staande scanner met voetpedaal van CZUR, en die leent zich goed om snel notitieboekjes te digitaliseren realiseerde ik me na de meet-up. Daar maar eens mee experimenteren.
    Tot slot, was ik blij met hoe prettig mijn Jitsi server werkte zo met z’n vieren. Benieuwd hoe dat gaat als je met een grotere groep bent. Alleen het scherm delen had een rare bug waarbij de bovenste strook van een scherm bleef hangen op het eerste beeld.
    Wil je ook met andere Obsidian gebruikers in het Nederlandse praten over je ervaringen? Kom dan naar het #nederlands kanaal op de Obsidian Discord server.

Comments are closed.

To respond on your own website, enter the URL of your response which should contain a link to this post's permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post's URL again. (Find out more about Webmentions.)

Mentions

Likes