Coder Social home page Coder Social logo

anki-mindmap's People

Contributors

khonkhortisan avatar risingorange avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

anki-mindmap's Issues

No Mindmap Dropdown, No Dot Folder

I followed the instructions to put the commands in terminal, but after finishing, there is only a "brew" executable file inside of the bin folder. There is a "dot" folder inside of the local files though. I have tried configuring mind map to all these folders, and no dropdown menu to use mind map ever appears.

Help

I know this is something very basic and easy but I am entirely new to this and was hoping if you could help me. I installed homebrew and graphviz however, I am unable to select the tag for some reason, even while it being present in my deck. Can you please help me with this
Screenshot 2021-05-05 at 4 43 09 PM

the link to video doesn't work in "Installation of graphviz on Mac Os " part

the video link in your explanation doesn't work so I don't know how to process anymore

This will give you the path to a file named "dot", for example "opt/homebrew/bin/dot"
Copy this path by selecting the text using your mouse and pressing command+c. Then go to Anki and tell it about the location of the file named "dot" by following the steps shown in the video. Note that the path to the file might be different in your case.

TypeError: C++ type 'QWebEngineDownloadItem*' is not supported as a pyqtSlot argument type

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Mindmap from tag hierarchy⁩':
⁨Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/aqt/addons.py", line 244, in loadAddons
import(addon.dir_name)
File "/home/grim/.local/share/Anki2/addons21/965278890/init.py", line 13, in
from .mindmap_creator_dialog import show as show_dialog
File "/home/grim/.local/share/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 12, in
from .libaddon.gui.dialog_webview import WebViewer
File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/dialog_webview.py", line 47, in
class WebViewer(BasicDialog):
File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/dialog_webview.py", line 89, in WebViewer
@pyqtSlot("QWebEngineDownloadItem*")
TypeError: C++ type 'QWebEngineDownloadItem*' is not supported as a pyqtSlot argument type

Error (older version of Anki)

This add-on sounds amazing, but doesn't seem to be working. Every time I try to show or save a mindmap it gives me an error message (see debug info below). I've downloaded and installed version 2.47.1 of graphviz using the EXE installer for Windows 10 (64-bit).

How can I get this addon to work?

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-05-19 16:13:52

Caught exception:
Traceback (most recent call last):
File "C:\Users\Toju\AppData\Roaming\Anki2\addons21\965278890\mindmap_creator_dialog.py", line 46, in _on_show_button_click
self._save_mindmap_to_file(f.name)
File "C:\Users\Toju\AppData\Roaming\Anki2\addons21\965278890\mindmap_creator_dialog.py", line 89, in _save_mindmap_to_file
mindmap = TagMindmap(self.dialog.tag_prefix_lineedit.text())
File "C:\Users\Toju\AppData\Roaming\Anki2\addons21\965278890\mindmap.py", line 21, in init
self.notes_by_path = self._initialize_notes_by_path()
File "C:\Users\Toju\AppData\Roaming\Anki2\addons21\965278890\mindmap.py", line 53, in _initialize_notes_by_path
notes = get_notes(f'"{self.query_term}:{self.root_path}*"')
File "C:\Users\Toju\AppData\Roaming\Anki2\addons21\965278890\anki_util.py", line 41, in get_notes
for id in mw.col.find_notes(search_string)
AttributeError: '_Collection' object has no attribute 'find_notes'

circo > twopi

twopi places each subject right next to the root (in a sunflower fractal pattern), where each subnode can only expand outward. This can throw some bottom level nodes too far out. And lines cross each other erratically.
circo prioritizes short edges for bottom level nodes and long edges for top level nodes.

language (twopi)
l-twopi
language (circo)
l-circo
root (twopi)
all-twopi
root (circo)
all-circo

  • Being able to change the layout in the pop-up would help keep the image size small
    C:\Users\%username%\AppData\Roaming\Anki2\addons21\965278890\_vendor\brain_dump\graphviz.py:34
#            layout='twopi',
            layout='circo',
  • Changing the weight so that bottom level nodes get the shortest edges instead of toplevel nodes would make it more readable. circo probably isn't necessary to do that. I don't yet know which weight setting+layout combo actually accomplishes that.
    C:\Users\%username%\AppData\Roaming\Anki2\addons21\965278890\_vendor\brain_dump\graphviz.py:49
            penwidth=2 * (2 + graph.height - dest_node.depth),
            weight=dest_node.depth

Instructional video not working

The instructional video on the anki page is not loading and i am having trouble with loading the maps because it keeps telling me there is an error, please help.

Thank you

Interactive HMTL

Not really an issue, more of a feature request

Often I need to look up information on a topic I've made cards on. I was wondering if this addon could show the the contents of the cards if you click on it.

Feature request

Would really appreciate the ability to export the mindmap as .mm or .opml files in addition to .html

Questions for interactive mode

Hi,
first let me thank you for this very usefull add-on!
I just started using the interactive mode of the mind maps and do have some questions on the correct usage and maybe some improvements.
First, there seems to be a max size for the nodes. Therefore not all the text of the front of a note is shown in the mind map node. Is there a way to always show the full text of the front?
image

Second, is there a way to include the back/the answers of the notes as well in the interactive map? For example as further level?
Thank you for having a look and a short reply!
Regards, mdgml

[Suggestion] Option to sort branches alphabetically

Great add-on, works like a charm on Manjaro Linux!

I came here to ask whether you have any influence on the order of the branches. If yes, an option to sort them by their unicode values (alphabetically) like on the sidebar would be a nice feature.

As you can see in this example deck, the numbered leafs appear in random order:

image

Could/ would you add these features?

Below is a copy and paste to a Reddit conversation comment I made while discussing anki Xmind and other study aid apps plus the link to the thread… I’m wondering if there’s a chance your plugin already does the things I describe or if not, can you add them?

https://www.reddit.com/r/Anki/comments/orrtnq/note_taking_mind_map_flashcards/?utm_source=share&utm_medium=ios_app&utm_name=iossmf

My comments
What if I want to make a mindmap out of my cards. The way that the comments here are talking about the flow of information doesn’t make very much sense in terms of how learning actually occurs. The way I see it is

1- We receive a piece of information that has a definition that we can partially understand. (Working Memory)

2- We try to gain context to the piece of information by asking questions about it.

3- We make meaningful connections or context based on other information we know (encoding)

4- We repeatedly retrieve the information and recall our understanding of it (spaced repetition & active recall)

*5- We should also recall (retrieve) the context and how this piece of information relates to and gives context to other pieces of information. Ie how is it all connected?

The thing that leads to deep encoding is this… can you recall how and why all of the things you are learning are connected in a meaningful way and what is/could be the application of these ideas? The “could be” leads to actively using information to solve real world problems that are seemingly unrelated to the CONTEXT you’re learning them in. This I believe is what we all want to achieve right?

So, In this way, I want to note a piece of information and drop it in a stack so I can review it again until I’ve gained enough context to remember it long term. To do that I need to take my notecard and mind map it with other information to give it context and be able to say how and why things are connected in a similar spaced repetition recall fashion.

I guess what I’m saying I want to do is make the arms or branches of a mindmap the thing that I test my understanding on… because it’s the most important for encoding.

Is there an app for that? Lol Can I do this in reverse order and import my cards in anki to a mind mapping app like Xmind? Also, If I wanna draw diagrams, charts, and illustrations to give visual context to these connections, I ought to be able to do that too and put it as a collapsible function of my mindmap as well as have the mind mapped connections come into spaced repetition. For me, this would be optimal. Who here is a budding software/app developer?

Issue

"Erro
Ocorreu um erro. Por favor, inicie o Anki enquanto segura a tecla shift, isto vai desabilitar temporariamente as extensões que você instalou.
Se o problema ocorrer somente quando as extensões são habilitadas, use o Ferramentas > Extensões para desabilitar algumas extensões e reinicie o Anki, repetindo até descobrir a extensão que está causando o problema.
Quando você descobrir a extensão que está causando o problema, por favor reporte o problema em site de suporte de extensão.
Informações de Depuração:" <- It is portuguese

Erro
Ocorreu um erro. Por favor, inicie o Anki enquanto segura a tecla shift, isto vai desabilitar temporariamente as extensões que você instalou.
Se o problema ocorrer somente quando as extensões são habilitadas, use o Ferramentas > Extensões para desabilitar algumas extensões e reinicie o Anki, repetindo até descobrir a extensão que está causando o problema.
Quando você descobrir a extensão que está causando o problema, por favor reporte o problema em site de suporte de extensão.
Informações de Depuração:
Anki 2.1.35 (84dcaa86) Python 3.8.1 Qt 5.12.6 PyQt 5.12.3
Platform: Windows 7
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2021-02-27 18:48:26
When i tried to create a new map, i got this:
Caught exception:
Traceback (most recent call last):
File "C:\Users\HASSAN\AppData\Roaming\Anki2\addons21\965278890\mindmap_creator_dialog.py", line 68, in _on_button_click
mindmap.save_as_img(
File "C:\Users\HASSAN\AppData\Roaming\Anki2\addons21\965278890\mindmap.py", line 19, in save_as_img
create_mindmap_img(tree_to_markdown(tree), output_file_path, theme)
File "C:\Users\HASSAN\AppData\Roaming\Anki2\addons21\965278890_vendor\brain_dump\graphviz.py", line 78, in create_mindmap_img
graph = parse_text_graph(graph_markdown, root_label=root_label)
File "C:\Users\HASSAN\AppData\Roaming\Anki2\addons21\965278890_vendor\brain_dump\parsers\indented_text_graph.py", line 18, in parse
raise ValueError('Line {} is empty'.format(i + 1))
ValueError: Line 2 is empty

Only lines in Mindmap, no words

Hello RisingOrange,

I have been working with Anki for about two months and came across your very interesting extension. Especially when structuring the index cards, I find your extension for visualisation very promising. Unfortunately, when I create the file, I can only see the lines. Unfortunately, the terms cannot be displayed.

My first question is: what programme do you use to view your mind maps? Is there a special programme? I currently use Windows Explorer or Edge. Unfortunately, the image could not be viewed with Firefox.

Note:
If I use the note view, I cannot create a file. I realise that this option is still experimental.

I hope you can help me.

P. S.: In case of errors I can send you the text (error code) as a text file. I didn't want to inflate the request unnecessarily.

Regards evil headache

Translated with www.DeepL.com/Translator (free version)

cannot import name 'MutableSequence' from 'collections'

An add-on you installed failed to load. If problems persist, please go to the Tools>Add-ons menu, and disable or delete the add-on.

When loading '⁨Mindmap from tag hierarchy⁩':
⁨Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/aqt/addons.py", line 239, in loadAddons
import(addon.dir_name)
File "/home/grim/.local/share/Anki2/addons21/965278890/init.py", line 13, in
from .mindmap_creator_dialog import show as show_dialog
File "/home/grim/.local/share/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 12, in
from .libaddon.gui.dialog_webview import WebViewer
File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/dialog_webview.py", line 42, in
from .basic.dialog_basic import BasicDialog
File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/basic/dialog_basic.py", line 40, in
from .interface import CommonWidgetInterface
File "/home/grim/.local/share/Anki2/addons21/965278890/libaddon/gui/basic/interface.py", line 48, in
from collections import MutableSequence, MutableSet, MutableMapping
ImportError: cannot import name 'MutableSequence' from 'collections' (/usr/lib/python3.10/collections/init.py)

Mindmap not working

I completed the setup sequence and at the end there was not a file named 'dot' rather it shows /usr/local/opt/graphviz

Here is the code on Anki with the error

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.46 (94913ec2) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Mac 10.16
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-08-17 16:55:47
Add-ons possibly involved: ⁨Mindmap from tag hierarchy⁩

Caught exception:
Traceback (most recent call last):
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 46, in _on_show_button_click
self._save_mindmap_to_file(f.name)
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 106, in _save_mindmap_to_file
raise e
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 91, in _save_mindmap_to_file
mindmap.save_as_img(
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/mindmap.py", line 41, in save_as_img
raise e
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/mindmap.py", line 30, in save_as_img
create_mindmap_img(
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/_vendor/brain_dump/graphviz.py", line 112, in create_mindmap_img
pygraph.write_svg(output_file_path, prog=pydot_program, encoding='utf-8')
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 1609, in new_method
self.write(
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 1691, in write
s = self.create(prog, format, encoding=encoding)
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 1785, in create
stdout_data, stderr_data, process = call_graphviz(
File "/Users/bobbyycao/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 129, in call_graphviz
process = subprocess.Popen(
File "subprocess.py", line 854, in init
File "subprocess.py", line 1702, in _execute_child
PermissionError: [Errno 13] Permission denied: '/usr/local/opt/graphviz'

Help

Hello, I purchased a new laptop and my older settings are gone and i'm having trouble installing the add on again :(
this is the problem I am facing
Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 5.14.1 PyQt 5.14.1
Platform: Mac 12.2.1
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-08-22 10:31:13
Add-ons possibly involved: ⁨Mindmap from tag hierarchy⁩

Caught exception:
Traceback (most recent call last):
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 48, in _on_show_button_click
self._export_image_mindmap(f.name)
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 151, in _export_image_mindmap
raise e
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/mindmap_creator_dialog.py", line 134, in _export_image_mindmap
mindmap.save_as_img(
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/mindmap.py", line 46, in save_as_img
raise e
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/mindmap.py", line 35, in save_as_img
create_mindmap_img(
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/_vendor/brain_dump/graphviz.py", line 112, in create_mindmap_img
pygraph.write_svg(output_file_path, prog=pydot_program, encoding='utf-8')
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 1609, in new_method
self.write(
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 1691, in write
s = self.create(prog, format, encoding=encoding)
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 1785, in create
stdout_data, stderr_data, process = call_graphviz(
File "/Users/anshika/Library/Application Support/Anki2/addons21/965278890/_vendor/pydot/pydot.py", line 129, in call_graphviz
process = subprocess.Popen(
File "subprocess", line 951, in init
File "subprocess", line 1821, in _execute_child
PermissionError: [Errno 13] Permission denied: '/opt/homebrew/opt/graphviz'

Please help me out with this.
Thankyou so much

Error- exception

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-on support site.
Debug info:
Anki 2.1.40 (cf446733) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2021-04-12 17:52:54

Caught exception:
Traceback (most recent call last):
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890\mindmap_creator_dialog.py", line 93, in _on_show_button_click
self._save_mindmap_to_file(f.name)
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890\mindmap_creator_dialog.py", line 125, in _save_mindmap_to_file
mindmap.save_as_img(
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890\mindmap.py", line 17, in save_as_img
create_mindmap_img(
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890_vendor\brain_dump\graphviz.py", line 117, in create_mindmap_img
pygraph.write_svg(output_file_path)
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890_vendor\pydot\pydot.py", line 1705, in new_method
self.write(
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890_vendor\pydot\pydot.py", line 1790, in write
s = self.create(prog, format, encoding=encoding)
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890_vendor\pydot\pydot.py", line 1867, in create
self.write(tmp_name, encoding=encoding)
File "C:\Users\jy\AppData\Roaming\Anki2\addons21\965278890_vendor\pydot\pydot.py", line 1788, in write
f.write(s)
File "C:\python\lib\encodings\cp1252.py", line 19, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 33946-33947: character maps to

[Anki 23.10 beta 6] No module named 'sip'

The Qt compatibility code is now off by default, which may break some add-ons that haven't been updated to support Qt in the last years. If you find any have broken, please report the issues to the add-on author, and start Anki after setting the env var ENABLE_QT_COMPAT to to temporarily restore the compatibility code.

Error
Un complemento que has instalado ha fallado al cargarse. Si los problemas persisten, por favor ve a Herramientas> Menú de complementos o deshabilita este complemento.

Mientras cargando '⁨Mindmap from tag hierarchy⁩':
⁨Traceback (most recent call last):
  File "aqt.addons", line , in loadAddons
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki\addons\\__init__.py", line , in <module>
    from .mindmap_creator_dialog import show as show_dialog
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki\addons\\mindmap_creator_dialog.py", line , in <module>
    from .libaddon.gui.dialog_webview import WebViewer
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki\addons\\libaddon\gui\dialog_webview.py", line , in <module>
    from .basic.dialog_basic import BasicDialog
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki\addons\\libaddon\gui\basic\dialog_basic.py", line , in <module>
    from .interface import CommonWidgetInterface
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki\addons\\libaddon\gui\basic\interface.py", line , in <module>
    from .widgets.qt import *
  File "C:\Users\Khonkhortisan\AppData\Roaming\Anki\addons\\libaddon\gui\basic\widgets\qt.py", line , in <module>
    import sip
ModuleNotFoundError: No module named 'sip'
try:
    from PyQt6 import sip
except ImportError:
    import sip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.