GithubHelp home page GithubHelp logo

jupyterlab_xkcd's Introduction

This repository has been archived as it is deprecated. Please refer to the official extension tutorial.

JupyterLab xkcd-extension

Show a random xkcd.com comic in a JupyterLab panel

Prerequisites

  • JupyterLab

Installation

jupyter labextension install @jupyterlab/xkcd-extension

Development

For a development install (requires npm version 4 or later), do the following in the repository directory:

npm install
npm run build
jupyter labextension link .

To rebuild the package and the JupyterLab app:

npm run build
jupyter lab build

jupyterlab_xkcd's People

Contributors

blink1073 avatar fcollonval avatar lresende avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

jupyterlab_xkcd's Issues

Tag 05 (Restore Panel State) Outdated/No longer works

All of the previous four commits work exactly as described in the tutorial.

However, as of Friday, July 13th, 2018 (bad luck I guess), the fifth commit (to restore panel state) no longer works as described in the tutorial.

At first I thought it was a result of me not following the tutorial correctly. But the same problem (open a new comic, refresh JupyterLab -- comic tab is no longer there) persisting even upon copy-pasting the code in this repository.

I am not sure what else to add; this seemed self-explanatory from the title. Please let me know how I can elaborate in any way.

EDIT: Here is the version information for the packages being used from conda list

# packages in environment at /opt/miniconda/envs/jupyterlab:
#
# Name                    Version                   Build  Channel
anaconda-client           1.6.14                   py36_0  
appnope                   0.1.0            py36hf537a9a_0  
arrow                     0.12.1                   py36_2    conda-forge
asn1crypto                0.24.0                   py36_0  
backcall                  0.1.0                    py36_0  
beautifulsoup4            4.6.0            py36h72d3c9f_1  
binaryornot               0.4.4                    py36_0    local
bleach                    2.1.3                    py36_0  
ca-certificates           2018.03.07                    0  
certifi                   2018.4.16                py36_0  
cffi                      1.11.5           py36h342bebf_0  
chardet                   3.0.4            py36h96c241c_1  
click                     6.7              py36hec950be_0  
clyent                    1.2.2            py36hae3ad88_0  
conda                     4.5.5                    py36_0  
conda-build               3.10.9                   py36_0  
conda-env                 2.6.0                h36134e3_0  
conda-verify              2.0.0            py36he837df3_0  
cookiecutter              1.6.0                    py36_0    conda-forge
cryptography              2.2.2            py36h1de35cc_0  
decorator                 4.3.0                    py36_0  
entrypoints               0.2.3            py36hd81d71f_2  
expat                     2.2.5                hb8e80ba_0  
filelock                  3.0.4                    py36_0  
future                    0.16.0                   py36_1  
git                       2.17.1          pl526h028e6c8_0  
glob2                     0.6              py36h94c9186_0  
html5lib                  1.0.1            py36h2f9c1c0_0  
idna                      2.7                      py36_0  
ipykernel                 4.8.2                    py36_0  
ipython                   6.4.0                    py36_0  
ipython_genutils          0.2.0            py36h241746c_0  
jedi                      0.12.0                   py36_1  
jinja2                    2.10             py36hd36f9c5_0  
jinja2-time               0.2.0                      py_2    conda-forge
jsonschema                2.6.0            py36hb385e00_0  
jupyter_client            5.2.3                    py36_0  
jupyter_core              4.4.0            py36h79cf704_0  
jupyterlab                0.32.1                   py36_0  
jupyterlab_launcher       0.10.5                   py36_0  
libcurl                   7.60.0               hf30b1f0_0  
libcxx                    4.0.1                h579ed51_0  
libcxxabi                 4.0.1                hebd6815_0  
libedit                   3.1.20170329         hb402a30_2  
libffi                    3.2.1                h475c297_4  
libiconv                  1.15                 hdd342a3_7  
libsodium                 1.0.16               h3efe00b_0  
libssh2                   1.8.0                h322a93b_4  
markupsafe                1.0              py36h3a1e703_1  
mistune                   0.8.3            py36h1de35cc_1  
nbconvert                 5.3.1            py36h810822e_0  
nbformat                  4.4.0            py36h827af21_0  
ncurses                   6.1                  h0a44026_0  
nodejs                    8.11.1               h0a44026_0  
notebook                  5.5.0                    py36_0  
openssl                   1.0.2o               h26aff7b_0  
pandoc                    2.2.1                h1a437c5_0  
pandocfilters             1.4.2            py36h3b0b094_1  
parso                     0.2.1                    py36_0  
perl                      5.26.2               h4e221da_0  
pexpect                   4.6.0                    py36_0  
pickleshare               0.7.4            py36hf512f8e_0  
pip                       10.0.1                   py36_0  
pkginfo                   1.4.2                    py36_1  
poyo                      0.4.1                    py36_0    local
prompt_toolkit            1.0.15           py36haeda067_0  
psutil                    5.4.6            py36h1de35cc_0  
ptyprocess                0.6.0                    py36_0  
pycosat                   0.6.3            py36hee92d8f_0  
pycparser                 2.18             py36h724b2fc_1  
pygments                  2.2.0            py36h240cd3f_0  
pyopenssl                 18.0.0                   py36_0  
pysocks                   1.6.8                    py36_0  
python                    3.6.6                hc167b69_0  
python-dateutil           2.7.3                    py36_0  
python.app                2                        py36_8  
pytz                      2018.5                   py36_0  
pyyaml                    3.12             py36h2ba1e63_1  
pyzmq                     17.0.0           py36h1de35cc_1  
readline                  7.0                  hc1231fa_4  
requests                  2.19.1                   py36_0  
ruamel_yaml               0.15.42          py36h1de35cc_0  
send2trash                1.5.0                    py36_0  
setuptools                39.2.0                   py36_0  
simplegeneric             0.8.1                    py36_2  
six                       1.11.0           py36h0e22d5e_1  
sqlite                    3.24.0               ha441bb4_0  
terminado                 0.8.1                    py36_1  
testpath                  0.3.1            py36h625a49b_0  
tk                        8.6.7                h35a86e2_3  
tornado                   5.0.2                    py36_0  
traitlets                 4.3.2            py36h65bd3ce_0  
urllib3                   1.23                     py36_0  
wcwidth                   0.1.7            py36h8c6ec74_0  
webencodings              0.5.1            py36h3b9701d_1  
wheel                     0.31.1                   py36_0  
whichcraft                0.4.1                    py36_0    local
xz                        5.2.4                h1de35cc_4  
yaml                      0.1.7                hc338f04_2  
zeromq                    4.2.5                h378b8a2_0  
zlib                      1.2.11               hf3cbc9b_2  

Plan for updates

I think switching to branches vs tags will be easier to maintain.
I we have branches, we can make PRs against those branches that can be separately tested on CI.

Compatibility issue with JupyterLab

jupyter lab --version
0.31.12
jupyter labextension install @jupyterlab/xkcd-extension

> /opt/conda/bin/npm pack @jupyterlab/xkcd-extension
jupyterlab-xkcd-extension-0.3.0.tgz

Errored, use --debug for full output:
ValueError: 
"@jupyterlab/[email protected]" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension            Package
>=0.15.4-0 <0.16.0-0    >=0.16.0-0 <0.17.0-0 @jupyterlab/application
>=0.15.5-0 <0.16.0-0    >=0.16.0-0 <0.17.0-0 @jupyterlab/apputils

package releases are not published on npm

Last published version of extension is 0.2.0 so doing

jupyter labextension install @jupyterlab/xkcd-extension

causes

ValueError: 
"@jupyterlab/[email protected]" is not compatible with the current JupyterLab
Conflicting Dependencies:
JupyterLab              Extension            Package
>=0.15.1-0 <0.16.0-0    >=0.11.0-0 <0.12.0-0 @jupyterlab/application

Archive this repository

This repository is part of the repositories listed as inactive during the JupyterLab team call.

This issue is to ping anyone listening for changes in this repository that starting from today if no volunteer propose him/herself to maintain this repository it will be archived in 2 weeks (aka July 27th, 2023).

release 0.34 branch on NPM

Similar to what happened in #3, the currently available version of @jupyterlab/xkcd-extension yields the following error:

$ jupyter labextension install @jupyterlab/xkcd_extension
> /usr/bin/npm pack @jupyterlab/xkcd_extension
npm ERR! code E404
npm ERR! 404 Not Found: @jupyterlab/xkcd_extension@latest

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/pi/.npm/_logs/2018-08-23T06_07_26_346Z-debug.log

Errored, use --debug for full output:
ValueError: "@jupyterlab/xkcd_extension" is not a valid npm package
~/potatoes $ jupyter labextension install @jupyterlab/xkcd-extension
> /usr/bin/npm pack @jupyterlab/xkcd-extension
jupyterlab-xkcd-extension-0.4.0.tgz

Errored, use --debug for full output:
ValueError: This extension does not yet support the current version of JupyterLab.


Conflicting Dependencies:
JupyterLab              Extension        Package
>=0.18.3 <0.19.0        >=0.17.0 <0.18.0 @jupyterlab/application
>=0.18.3 <0.19.0        >=0.17.0 <0.18.0 @jupyterlab/apputils
~/potatoes $ jupyterlab --version
/bin/sh: jupyterlab: not found
~/potatoes $ jupyter lab --version
0.34.1

building the 0.34 branch of this repo via jupyter labextension install . from source works fine, though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.