• Stars
    star
    98
  • Rank 334,336 (Top 7 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created about 6 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

View html as an embedded iframe in JupyterLab

jupyterlab_iframe

Open a site in a widget, or add a set of "quicklinks".

Build Status codecov PyPI PyPI npm Binder

Install

pip install jupyterlab_iframe
jupyter labextension install jupyterlab_iframe
jupyter serverextension enable --py jupyterlab_iframe

Options

External Sites

install the server extension, and add the following to jupyter_notebook_config.py

c.JupyterLabIFrame.iframes = ['list', 'of', 'sites']

In this example, list, of, and sites will be available as links in the command palette.

Landing page on initial page load

c.JupyterLabIFrame.iframes = ['list', 'of', 'sites']
c.JupyterLabIFrame.welcome = 'a site to show on initial load'
c.JupyterLabIFrame.local_files = ['list', 'of', 'local', 'html', 'files']

In this example, a site will open by default the first time JupyterLab is opened.

Open local html file in iframe

c.JupyterLabIFrame.local_files = ['list', 'of', 'local', 'html', 'files']

Any files specified by 'local_files' will be served up as local links. By default any file on the filesystem is allowed, to disable this and only allow the list specifically designated here, set c.JupyterLabIFrame.allow_any_local = False. If you allow all, in the open dialog start the file path with local://.

Caveats

Update for version v0.0.12 - Most of these are covered by #31

This package uses iframes, so is subject to a few restrictions: - If Jlab is served over SSL, so must the sites (http/https must match) - If the underlying site enforces same-origin, then we cannot navigate to them (e.g. google)

Similar Packages

Configuring Binder with a landing page

To configure binder to serve a landing page, simply add the following configuration:

To requirements.txt:

jupyterlab_iframe>=0.2

To postBuild:

jupyter labextension install jupyterlab_iframe@^0.2
jupyter serverextension enable --py jupyterlab_iframe

config="c.JupyterLabIFrame.welcome = 'local://binder/landing.html'"
mkdir -p ~/.jupyter
echo -e $config > ~/.jupyter/jupyter_notebook_config.py

More Repositories

1

tdameritrade

Python interface to TD Ameritrade (https://developer.tdameritrade.com)
Python
518
star
2

lantern

Data exploration glue
Python
335
star
3

paperboy

A web frontend for scheduling Jupyter notebook reports
Python
247
star
4

jupyterlab_miami_nights

Combination of VS Code's SynthWave '84 and JupyterLab's Neon Night
CSS
88
star
5

oreilly-latex-template

O'Reilly Latex Template by Joan Queralt translated to english from https://tex.stackexchange.com/questions/107862/oreilly-template
TeX
59
star
6

ipydagred3

ipywidgets library for drawing directed acyclic graphs in jupyterlab using dagre-d3
Python
54
star
7

jupyterlab_email

A jupyterlab extension to email notebooks directly from JupyterLab.
Python
52
star
8

knowledgelab

KnowledgeRepo + JupyterLab
Python
47
star
9

jupyterlab_commands

Add arbitrary python commands to the jupyterlab command palette
Python
45
star
10

perspective-parquet

Parquet file reader and editor in Jupyterlab, built with `perspective` for pivoting, filtering, aggregating, etc
JavaScript
26
star
11

pyEX-zipline

pyEX + Zipline
Python
23
star
12

jupyterlab_powerpoint

Creating PowerPoints from jupyter notebooks and vice versa
JavaScript
20
star
13

perspective-python

Python APIs for perspective front end
14
star
14

jupyterlab_nbconvert_nocode

A simple helper library with 2 NBConvert exporters for PDF/HTML export with no code cells
Jinja
13
star
15

polygon-io-perspective

Demo application visualizing Polygon.io financial data in Perspective
JavaScript
12
star
16

perspective-dash-component

A dash component for perspective.
Python
11
star
17

nannotate

Automate ML dataset labelling
JavaScript
11
star
18

nbcx

A framework for customizing NBConvert templates and building reports
CSS
10
star
19

fpga-board

A minimal complexity fpga board
10
star
20

tornado-proxy-handlers

Tornado proxy handlers for HTTP requests and web sockets
Python
9
star
21

pyEX-studies

Predefined financial metrics built on pyEX/IEX
6
star
22

bigbrother

An evil, awful, terrible, no-good library for watching objects for mutation. Do not use this library.
Python
6
star
23

finance-enums

Standard Financial Enumerations
Rust
5
star
24

pyEX-caching

Library for caching and querying IEX data
Python
5
star
25

ta-lib

TA-lib built with CMake
CMake
4
star
26

polygon-io-examples

Example applications, dashboards, scripts, notebooks, and other utilities built using Polygon.io
Jupyter Notebook
4
star
27

arrow-wasm-cpp

Standalone Apache Arrow compiled to WebAssembly, extracted from https://github.com/finos/perspective
CMake
3
star
28

temporal-cache

Time-based cache invalidation
Python
3
star
29

temporal-cache-js

Time-based cache invalidation
JavaScript
2
star
30

regular-table-lumino

bugs and tests putting `regular-table` inside lumino widgets
JavaScript
2
star
31

tkp-stack-public

Public version of my personal ansible scripts
Python
2
star
32

arrow-cpp-python-nocopy

CMake
2
star
33

con-pcie-x4

PCIe x4 edge which for some reason doesn't exist anywhere...
2
star
34

crowdsource

A streaming competition engine
Python
1
star
35

perspective-workspace-react-tornado

Example integrating Perspective Workspace + React + Tornado
JavaScript
1
star
36

perspective-summary

A `perspective-viewer` that provides summary statistics
Rust
1
star
37

finance-widgets

Library of reusable, composable javascript widgets for financial data.
1
star
38

requests-helper

Simple helper for requests
JavaScript
1
star
39

pyproject-cookiecutter

A Cookiecutter for my personal projects
JavaScript
1
star
40

iex-cloud-training

Comprehensive course for working programmatically with data.
Jupyter Notebook
1
star
41

jupyterlab_iex

JupyterLab Extensions for IEX Cloud
1
star
42

airflow-supervisor

Airflow utilities for running long-running or always-on jobs with supervisord
Makefile
1
star
43

tkp_utils_js

Whenever I have to write the same code over and over again, I'll put it here
TypeScript
1
star
44

timkpaine

HTML
1
star
45

cocktail-website

website for barrel cocktail co.
Svelte
1
star
46

voila-plain

Very simple template for Voila
Smarty
1
star
47

verilator-coverage-repro

repository for ventilator `--coverage` problem
Makefile
1
star
48

tkp_stack_public

Public helpers scripts and configuration
1
star
49

turtles

turtles turtles turtles turtles turtles turtles turtles turtles turtles turtles turtles turtles turtles turtles turtles turtles
1
star
50

pyproject-cookiecutter-example

An example instance of https://github.com/timkpaine/pyproject-cookiecutter, for testing
1
star
51

tributary-rs

Streaming reactive and dataflow graphs in Rust
Rust
1
star