skillsnetwork-authoring-extension


Nameskillsnetwork-authoring-extension JSON
Version 0.6.5 PyPI version JSON
download
home_pagehttps://github.com/ibm-skills-network/skillsnetwork-authoring-extension
SummaryJupyterLab/JupyterLite extension for Skills Network Authoring
upload_time2024-03-14 14:51:28
maintainer
docs_urlNone
authorJenny Cao
requires_python>=3.7
licenseBSD-3-Clause
keywords jupyter jupyterlab jupyterlab3
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # skillsnetwork-authoring-extension

> [!CAUTION]
> #### This repository is now archived! Please see [the new repository](https://github.com/ibm-skills-network/skillsnetwork-jupyter-extension).

JupterLab/JupyerLite extension for Skills Network Authoring

If you are an author start [here](#to-use-the-extension-as-an-author)

If you are a contributor start [here](#to-contribute-to-the-extension)


## To use the extension as an author

### Install

To install the extension, execute:

```bash
pip install skillsnetwork-authoring-extension
```

After installing, enable the extension:

```bash
jupyter serverextension enable skillsnetwork-authoring-extension
```

### Launch JupyterLab

To launch Jupyter Lab visit [http://localhost:8888/](http://localhost:8888/)

### Uninstall

To remove the extension, execute:

```bash
pip uninstall skillsnetwork-authoring-extension
```

### Edit a Lab via Token

![](https://github.com/ibm-skills-network/skillsnetwork-authoring-extension/blob/main/demo_sn_authoring_extension2.gif)

## To Contribute to the Extension

### Before Getting Started

Check the JupyterLab version in staging and production and download the correct JupyterLab extension. 

To check the version go to [Menu Bar]([https://jupyterlab.readthedocs.io/en/stable/user/interface.html#menu-bar]
) -> Help -> About JupyterLab

```
pip install jupyterlab==<version>
```

### Development install

Note: You will need NodeJS to build the extension package.

The `jlpm` command is JupyterLab's pinned version of
[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use
`yarn` or `npm` in lieu of `jlpm` below.

```bash
# Clone the repo to your local environment
# Change directory to the skillsnetwork-authoring-extension directory
# Install package in development mode
pip install -e .
# Install jupyter-packaging
pip install jupyter-packaging
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Rebuild extension Typescript source after making changes
jlpm build
```

You can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.

```bash
# Watch the source directory in one terminal, automatically rebuilding when needed
jlpm watch
# Run JupyterLab in another terminal
jupyter lab
```

With the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).

By default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:

```bash
jupyter lab build --minimize=False
```

### Launch JupyterLab

To launch Jupyter Lab visit [http://localhost:8888/](http://localhost:8888/)

### Development uninstall

```bash
pip uninstall skillsnetwork-authoring-extension
```

In development mode, you will also need to remove the symlink created by `jupyter labextension develop`
command. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`
folder is located. Then you can remove the symlink named `skillsnetwork-authoring-extension` within that folder.

### Edit a Lab via Token

Demo [Here](#edit-a-lab-via-token)

#### Get a Token

1. Go to Author Workbench production [site](https://author.skills.network/)
2. Select `Labs` on the left panel screen
3. Select `JupyterLab` Tool Type
4. Open developer console
5. Search for `/hub/user` in `network` tab
6. Copy and paste `atlas-token` or `awb-token` from the `Request URL`

Example of `Request URL`:
```
Request URL:
https://jupyterlab-4-labs-prod-jupyterlab-us-east-0.labs.cognitiveclass.ai/hub/user/user-name/lab/?mode=author&env_type=jupyterlab&atlas_token=eyJhbGciOiJIUzI1NiJ9.eyJhdXRob3IiOnsdZGlzcGxheV9uYW1lIjoiT2xpdmVyIEx1byIsImVtYWlsIjoib2xpdmVyLmx1b0BpYm0uY29tIn0sImxhYl9pZCI6Ijg4ODciLCJwcm9qZWN0X2lkIjoiNTYwNSJ9.0p7v9qBIcnGyjWAovkoHEWxcCZHqcmRfqtV4PH7eb0U

Token from Request URL: 
eyJhbGciOiJIUzI1NiJ9.eyJhdXRob3IiOnsdZGlzcGxheV9uYW1lIjoiT2xpdmVyIEx1byIsImVtYWlsIjoib2xpdmVyLmx1b0BpYm0uY29tIn0sImxhYl9pZCI6Ijg4ODciLCJwcm9qZWN0X2lkIjoiNTYwNSJ9.0p7v9qBIcnGyjWAovkoHEWxcCZHqcmRfqtV4PH7eb0U
```

### Packaging the extension

```bash
# Package the python source package .tar.gz and binary package .whl
pip install build twine
python -m build
```

Also see [RELEASE](RELEASE.md)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ibm-skills-network/skillsnetwork-authoring-extension",
    "name": "skillsnetwork-authoring-extension",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "Jupyter,JupyterLab,JupyterLab3",
    "author": "Jenny Cao",
    "author_email": "jenny.cao@ibm.com",
    "download_url": "https://files.pythonhosted.org/packages/6a/d6/7cb30e6a989a3c57b2fa5d645d739f312ce82a0ac189dd5d9aad161f6e49/skillsnetwork-authoring-extension-0.6.5.tar.gz",
    "platform": "Linux",
    "description": "# skillsnetwork-authoring-extension\n\n> [!CAUTION]\n> #### This repository is now archived! Please see [the new repository](https://github.com/ibm-skills-network/skillsnetwork-jupyter-extension).\n\nJupterLab/JupyerLite extension for Skills Network Authoring\n\nIf you are an author start [here](#to-use-the-extension-as-an-author)\n\nIf you are a contributor start [here](#to-contribute-to-the-extension)\n\n\n## To use the extension as an author\n\n### Install\n\nTo install the extension, execute:\n\n```bash\npip install skillsnetwork-authoring-extension\n```\n\nAfter installing, enable the extension:\n\n```bash\njupyter serverextension enable skillsnetwork-authoring-extension\n```\n\n### Launch JupyterLab\n\nTo launch Jupyter Lab visit [http://localhost:8888/](http://localhost:8888/)\n\n### Uninstall\n\nTo remove the extension, execute:\n\n```bash\npip uninstall skillsnetwork-authoring-extension\n```\n\n### Edit a Lab via Token\n\n![](https://github.com/ibm-skills-network/skillsnetwork-authoring-extension/blob/main/demo_sn_authoring_extension2.gif)\n\n## To Contribute to the Extension\n\n### Before Getting Started\n\nCheck the JupyterLab version in staging and production and download the correct JupyterLab extension. \n\nTo check the version go to [Menu Bar]([https://jupyterlab.readthedocs.io/en/stable/user/interface.html#menu-bar]\n) -> Help -> About JupyterLab\n\n```\npip install jupyterlab==<version>\n```\n\n### Development install\n\nNote: You will need NodeJS to build the extension package.\n\nThe `jlpm` command is JupyterLab's pinned version of\n[yarn](https://yarnpkg.com/) that is installed with JupyterLab. You may use\n`yarn` or `npm` in lieu of `jlpm` below.\n\n```bash\n# Clone the repo to your local environment\n# Change directory to the skillsnetwork-authoring-extension directory\n# Install package in development mode\npip install -e .\n# Install jupyter-packaging\npip install jupyter-packaging\n# Link your development version of the extension with JupyterLab\njupyter labextension develop . --overwrite\n# Rebuild extension Typescript source after making changes\njlpm build\n```\n\nYou can watch the source directory and run JupyterLab at the same time in different terminals to watch for changes in the extension's source and automatically rebuild the extension.\n\n```bash\n# Watch the source directory in one terminal, automatically rebuilding when needed\njlpm watch\n# Run JupyterLab in another terminal\njupyter lab\n```\n\nWith the watch command running, every saved change will immediately be built locally and available in your running JupyterLab. Refresh JupyterLab to load the change in your browser (you may need to wait several seconds for the extension to be rebuilt).\n\nBy default, the `jlpm build` command generates the source maps for this extension to make it easier to debug using the browser dev tools. To also generate source maps for the JupyterLab core extensions, you can run the following command:\n\n```bash\njupyter lab build --minimize=False\n```\n\n### Launch JupyterLab\n\nTo launch Jupyter Lab visit [http://localhost:8888/](http://localhost:8888/)\n\n### Development uninstall\n\n```bash\npip uninstall skillsnetwork-authoring-extension\n```\n\nIn development mode, you will also need to remove the symlink created by `jupyter labextension develop`\ncommand. To find its location, you can run `jupyter labextension list` to figure out where the `labextensions`\nfolder is located. Then you can remove the symlink named `skillsnetwork-authoring-extension` within that folder.\n\n### Edit a Lab via Token\n\nDemo [Here](#edit-a-lab-via-token)\n\n#### Get a Token\n\n1. Go to Author Workbench production [site](https://author.skills.network/)\n2. Select `Labs` on the left panel screen\n3. Select `JupyterLab` Tool Type\n4. Open developer console\n5. Search for `/hub/user` in `network` tab\n6. Copy and paste `atlas-token` or `awb-token` from the `Request URL`\n\nExample of `Request URL`:\n```\nRequest URL:\nhttps://jupyterlab-4-labs-prod-jupyterlab-us-east-0.labs.cognitiveclass.ai/hub/user/user-name/lab/?mode=author&env_type=jupyterlab&atlas_token=eyJhbGciOiJIUzI1NiJ9.eyJhdXRob3IiOnsdZGlzcGxheV9uYW1lIjoiT2xpdmVyIEx1byIsImVtYWlsIjoib2xpdmVyLmx1b0BpYm0uY29tIn0sImxhYl9pZCI6Ijg4ODciLCJwcm9qZWN0X2lkIjoiNTYwNSJ9.0p7v9qBIcnGyjWAovkoHEWxcCZHqcmRfqtV4PH7eb0U\n\nToken from Request URL: \neyJhbGciOiJIUzI1NiJ9.eyJhdXRob3IiOnsdZGlzcGxheV9uYW1lIjoiT2xpdmVyIEx1byIsImVtYWlsIjoib2xpdmVyLmx1b0BpYm0uY29tIn0sImxhYl9pZCI6Ijg4ODciLCJwcm9qZWN0X2lkIjoiNTYwNSJ9.0p7v9qBIcnGyjWAovkoHEWxcCZHqcmRfqtV4PH7eb0U\n```\n\n### Packaging the extension\n\n```bash\n# Package the python source package .tar.gz and binary package .whl\npip install build twine\npython -m build\n```\n\nAlso see [RELEASE](RELEASE.md)\n\n",
    "bugtrack_url": null,
    "license": "BSD-3-Clause",
    "summary": "JupyterLab/JupyterLite extension for Skills Network Authoring",
    "version": "0.6.5",
    "project_urls": {
        "Homepage": "https://github.com/ibm-skills-network/skillsnetwork-authoring-extension"
    },
    "split_keywords": [
        "jupyter",
        "jupyterlab",
        "jupyterlab3"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "b5e60bd8cb380ef6e3ed60a08774a4a3727730c1439f02b711d5390f2329a719",
                "md5": "afb3e52f98c2601abc806fa49d883047",
                "sha256": "8ff323caa4a27e455858145cc3c013c223652765f3db3cb30bf25fc984c157dc"
            },
            "downloads": -1,
            "filename": "skillsnetwork_authoring_extension-0.6.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "afb3e52f98c2601abc806fa49d883047",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 61459,
            "upload_time": "2024-03-14T14:51:26",
            "upload_time_iso_8601": "2024-03-14T14:51:26.419345Z",
            "url": "https://files.pythonhosted.org/packages/b5/e6/0bd8cb380ef6e3ed60a08774a4a3727730c1439f02b711d5390f2329a719/skillsnetwork_authoring_extension-0.6.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "6ad67cb30e6a989a3c57b2fa5d645d739f312ce82a0ac189dd5d9aad161f6e49",
                "md5": "f6c8edb261a0d89f61176a52997d0ed6",
                "sha256": "d2392019152605fa955a4779e1cd13d346f4d6db92ee766fbbdcd34fc398364a"
            },
            "downloads": -1,
            "filename": "skillsnetwork-authoring-extension-0.6.5.tar.gz",
            "has_sig": false,
            "md5_digest": "f6c8edb261a0d89f61176a52997d0ed6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 138110,
            "upload_time": "2024-03-14T14:51:28",
            "upload_time_iso_8601": "2024-03-14T14:51:28.139281Z",
            "url": "https://files.pythonhosted.org/packages/6a/d6/7cb30e6a989a3c57b2fa5d645d739f312ce82a0ac189dd5d9aad161f6e49/skillsnetwork-authoring-extension-0.6.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-14 14:51:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ibm-skills-network",
    "github_project": "skillsnetwork-authoring-extension",
    "github_not_found": true,
    "lcname": "skillsnetwork-authoring-extension"
}
        
Elapsed time: 0.41668s