Compare commits
8 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
960341f6a7 | ||
![]() |
819684f29b | ||
![]() |
2421e1b6bc | ||
![]() |
54e6560285 | ||
![]() |
11014c81ba | ||
![]() |
63080b1ddb | ||
![]() |
7713b49329 | ||
![]() |
146b4c07b3 |
7 changed files with 25 additions and 7 deletions
3
MANIFEST.in
Normal file
3
MANIFEST.in
Normal file
|
@ -0,0 +1,3 @@
|
|||
recursive-include jupyterlab_templates/templates/ *
|
||||
include README.md
|
||||
include LICENSE
|
5
Makefile
5
Makefile
|
@ -20,6 +20,9 @@ serverextension: install ## enable serverextension
|
|||
labextension: install ## enable labextension
|
||||
jupyter labextension install .
|
||||
|
||||
dist: ## dist to pypi
|
||||
python3 setup.py sdist upload -r pypi
|
||||
|
||||
# docs: ## make documentation
|
||||
# make -C ./docs html
|
||||
|
||||
|
@ -31,4 +34,4 @@ help:
|
|||
print-%:
|
||||
@echo '$*=$($*)'
|
||||
|
||||
.PHONY: clean install serverextension labextension test tests help docs
|
||||
.PHONY: clean install serverextension labextension test tests help docs dist
|
||||
|
|
|
@ -26,7 +26,7 @@ def load_jupyter_server_extension(nb_server_app):
|
|||
host_pattern = '.*$'
|
||||
base_url = web_app.settings['base_url']
|
||||
|
||||
print('Installing jupyterlab_iframe handler on path %s' % '/iframes')
|
||||
print('Installing jupyterlab_iframe handler on path %s' % url_path_join(base_url, 'iframes'))
|
||||
print('Handling iframes: %s' % sites)
|
||||
|
||||
web_app.add_handlers(host_pattern, [(url_path_join(base_url, '/iframes'), IFrameHandler, {'welcome': welcome, 'sites': sites})])
|
||||
web_app.add_handlers(host_pattern, [(url_path_join(base_url, 'iframes'), IFrameHandler, {'welcome': welcome, 'sites': sites})])
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "jupyterlab_iframe",
|
||||
"version": "0.1.3",
|
||||
"version": "0.1.4",
|
||||
"description": "A JupyterLab extension.",
|
||||
"author": "Tim Paine",
|
||||
"main": "lib/index.js",
|
||||
|
@ -23,6 +23,7 @@
|
|||
"dependencies": {
|
||||
"@jupyterlab/application": "^0.16.0",
|
||||
"@jupyterlab/apputils": "^0.16.0",
|
||||
"@jupyterlab/coreutils": "^1.0.2",
|
||||
"@jupyterlab/docmanager": "^0.16.0",
|
||||
"@phosphor/disposable": "^1.1.2"
|
||||
},
|
||||
|
|
6
setup.cfg
Normal file
6
setup.cfg
Normal file
|
@ -0,0 +1,6 @@
|
|||
[bdist_wheel]
|
||||
universal=1
|
||||
|
||||
[metadata]
|
||||
description_file = README.md
|
||||
license_file = LICENSE
|
5
setup.py
5
setup.py
|
@ -9,11 +9,11 @@ with open(path.join(here, 'README.md'), encoding='utf-8') as f:
|
|||
|
||||
setup(
|
||||
name='jupyterlab_iframe',
|
||||
version='0.0.4',
|
||||
version='0.0.8',
|
||||
description='IFrame widgets for JupyterLab',
|
||||
long_description=long_description,
|
||||
url='https://github.com/timkpaine/jupyterlab_iframe',
|
||||
download_url='https://github.com/timkpaine/jupyterlab_iframe/archive/v0.0.4.tar.gz',
|
||||
download_url='https://github.com/timkpaine/jupyterlab_iframe/archive/v0.0.8.tar.gz',
|
||||
author='Tim Paine',
|
||||
author_email='t.paine154@gmail.com',
|
||||
license='GPL',
|
||||
|
@ -29,6 +29,7 @@ setup(
|
|||
keywords='jupyter jupyterlab',
|
||||
|
||||
packages=find_packages(exclude=['tests', ]),
|
||||
data_files=[('', ["LICENSE", "README.md"])],
|
||||
zip_safe=False,
|
||||
|
||||
# entry_points={
|
||||
|
|
|
@ -6,6 +6,10 @@ import {
|
|||
ICommandPalette, showDialog, Dialog
|
||||
} from '@jupyterlab/apputils';
|
||||
|
||||
import {
|
||||
PageConfig
|
||||
} from '@jupyterlab/coreutils'
|
||||
|
||||
import {
|
||||
IDocumentManager
|
||||
} from '@jupyterlab/docmanager';
|
||||
|
@ -129,7 +133,7 @@ function activate(app: JupyterLab, docManager: IDocumentManager, palette: IComma
|
|||
|
||||
// grab sites from serverextension
|
||||
var xhr = new XMLHttpRequest();
|
||||
xhr.open("GET", "/iframes", true);
|
||||
xhr.open("GET", PageConfig.getBaseUrl() + "iframes", true);
|
||||
xhr.onload = function (e:any) {
|
||||
if (xhr.readyState === 4) {
|
||||
if (xhr.status === 200) {
|
||||
|
|
Loading…
Add table
Reference in a new issue