diff --git a/IPython/html/nbextensions.py b/IPython/html/nbextensions.py
index 06fb0ca..4c4dbec 100644
--- a/IPython/html/nbextensions.py
+++ b/IPython/html/nbextensions.py
@@ -232,8 +232,8 @@ def install_nbextension(files, overwrite=False, symlink=False, user=False, prefi
for file in files:
src = pjoin(parent, file)
# print("%r, %r" % (dest_dir, file))
- dest = pjoin(dest_dir, file)
- _maybe_copy(src, dest, verbose)
+ dest_file = pjoin(dest_dir, file)
+ _maybe_copy(src, dest_file, verbose)
else:
src = path
_maybe_copy(src, dest, verbose)