title: SyntaxError: invalid syntax on Jupyter Notebook in Linux
body: <p>I'm trying to create a <code>labelmap</code> in Jupyter Notebook on a Linux machine but I'm getting this syntax error</p>
  <p>Code:</p>
  <pre><code>labels = [{'name':'licence', 'id':1}
  with open(files['LABELMAP'], 'w') as f:
      for label in labels:
          f.write('item { \n')
          f.write('\tname:\'{}\'\n'.format(label['name']))
          f.write('\tid:{}\n'.format(label['id']))
          f.write('}\n')
  </code></pre>
  <p>Error:</p>
  <pre><code> File &quot;/tmp/ipykernel_844/1834800190.py&quot;, line 3
     with open(files['LABELMAP'], 'w') as f:
     ^ SyntaxError: invalid syntax
  </code></pre>