title: How to ignore Pylance type checking on notebooks?
body: <p>I have a python project in which I have python files and notebooks.</p>
  <p>I use strict typing in my project but I would like to remove it only on notebooks. I use VScode with setting:</p>
  <pre><code>&quot;python.analysis.typeCheckingMode&quot;: &quot;strict&quot;
  </code></pre>
  <p>I know how to ignore type on a python file:</p>
  <p><a href="https://i.stack.imgur.com/ilbP3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ilbP3.png" alt="type ignore python file" /></a></p>
  <p>But it seems it does not work on notebooks:
  <a href="https://i.stack.imgur.com/FrfsT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FrfsT.png" alt="type ignore notebook" /></a></p>
  <p>I get the following type error:</p>
  <blockquote>
  <p>&quot;Type of &quot;y&quot; is partially unknown<br />
  Type of &quot;y&quot; is &quot;Unknown | None (pylance)&quot;</p>
  </blockquote>
  <p><a href="https://i.stack.imgur.com/uLol5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/uLol5.png" alt="enter image description here" /></a></p>
  <p><strong>How can I ignore type checking on notebooks ?</strong></p>