0

How to create a numpy array of any shape within an snippet?

For HTML there is a snippet which generates several list entries. link

ul>lix3

I'm missing the right search term to find the json syntax...may someone can give me an example?

incognito
  • 199
  • 3
  • 16

1 Answers1

0

The snippet documentation has decent examples that should hopefully be able to help.

Brett Cannon
  • 14,438
  • 3
  • 45
  • 40
  • I saw this page and found no suitable solution. The question is how to pass a variable in the prefix. – incognito Mar 13 '19 at 17:38
  • @incognito you might need to provide a code sample of what you're after. – Brett Cannon Mar 13 '19 at 21:12
  • Its rly just like the linked example, wehe create 3 lines of html code... I want to create a dataframe like 'pd.Dataframe([[val1, val2], [val3, val4]])' by typing sth. like dfx2,2 and fill the vals with tab – incognito Mar 14 '19 at 14:30
  • @incognito emmet support like that is baked into VS Code directly and probably doesn't use the standard snippet functionality but as an extension instead. – Brett Cannon Mar 14 '19 at 21:05
  • hmm, thats lame ;) ... but ty for reply – incognito Mar 15 '19 at 07:32
  • @incognito you can always file a feature request at https://github.com/microsoft/vscode. – Brett Cannon Mar 15 '19 at 19:03