Skip to content

Commit

Permalink
Update static to labextension in __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jtpio committed Nov 6, 2020
1 parent bfcc2da commit 00bab63
Show file tree
Hide file tree
Showing 19 changed files with 37 additions and 36 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ node_modules/
**/node_modules/**/README.md

static
labextension
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions advanced/server-extension/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,12 +340,12 @@ from ._version import __version__

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions advanced/server-extension/jlab_ext_example/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions basics/datagrid/jupyterlab_examples_datagrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions basics/signals/jupyterlab_examples_signals/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions commands/jupyterlab_examples_commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions context-menu/jupyterlab_examples_context_menu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions launcher/jupyterlab_examples_launcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions main-menu/jupyterlab_examples_main_menu/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions settings/jupyterlab_examples_settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
4 changes: 2 additions & 2 deletions state/jupyterlab_examples_state/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

HERE = osp.abspath(osp.dirname(__file__))

with open(osp.join(HERE, 'static', 'package.json')) as fid:
with open(osp.join(HERE, 'labextension', 'package.json')) as fid:
data = json.load(fid)

def _jupyter_labextension_paths():
return [{
'src': 'static',
'src': 'labextension',
'dest': data['name']
}]

Expand Down

0 comments on commit 00bab63

Please sign in to comment.