How can I use a mermaid flowchart LR to describe a code line

I want to describe a python code line in a quarto document for further description with a mermaid flowchart LR diagram.

The Pyhton codeline is this:

tfidf_text_vectorizer = TfidfVectorizer(stop_words=list(stopwords), min_df=5, max_df=0.7)

I try to split the code line in a mermaid code chunk:

```{mermaid}
   flowchart LR
       tfidf_text_vectorizer --> TfidfVectorizer(
       TfidfVectorizer( --> stop_words
       stop_words --> =list(stopwords),
       =list(stopwords), --> min_df=5, 
       min_df=5, --> max_df=0.7)
```

But I receive the error in VS Code: undefinded.

Can I describe a code line with mermaid. If yes, how can I do this?

PS: Are there any other solutions for describe a code line in a quarto document?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.