# Using PYNQ through Jupyter Labs: Javascript Error: require is not defined

**URL:** <https://discuss.pynq.io/t/using-pynq-through-jupyter-labs-javascript-error-require-is-not-defined/363>\
**Category:** Support\
**Created:** [August 3, 2019, 1:59am UTC](https://discuss.pynq.io/t/using-pynq-through-jupyter-labs-javascript-error-require-is-not-defined/363 "2019-08-03T01:59:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pynqzen](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/pynqzen/32/97_2.png) [@pynqzen](https://discuss.pynq.io/u/pynqzen)\
**Post date:** [August 3, 2019, 1:59am UTC](https://discuss.pynq.io/t/using-pynq-through-jupyter-labs-javascript-error-require-is-not-defined/363/1 "2019-08-03T01:59:05Z")

</div>

Hi Friends,

I am using Jupyter labs on an Ultra96 V1 board and PYNQ v2.4 and I have noticed a peculiarity.

If I do this: “from pynq import PL” or just “import pynq” or any pynq import,  
just below the cell it emits: “Javascript Error: require is not defined”

This only happens once, subsequent imports or from imports in the same session no longer generate the error.

Is this a known issue? Is it serious? Is there a work around?

Thank you for all your hard work and providing support to the community here!

---

<div class="post-metadata">

**Author:** ![PeterOgden](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.pynq.io/peterogden/32/55_2.png) [@PeterOgden](https://discuss.pynq.io/u/PeterOgden)\
**Post date:** [August 4, 2019, 8:20am UTC](https://discuss.pynq.io/t/using-pynq-through-jupyter-labs-javascript-error-require-is-not-defined/363/2 "2019-08-04T08:20:50Z")

</div>

This is caused by the code we use to do C syntax highlighting for the `%%microblaze` magic. It is only a cosmetic issue and doesn’t impact any of the functionality of PYNQ. You can get rid of it by deleting line 101 of [pynq/lib/pynqmicroblaze/magic.py](https://github.com/Xilinx/PYNQ/blob/master/pynq/lib/pynqmicroblaze/magic.py). We’ll look into a proper fix now that JupyterLab has stabilised.

Peter
