Package: skills-network-authoring-jupyterlab-extension
skills_network_authoring_jupyterlab_extensionJupterLab/JupyerLite extension for Skills Network AuthoringIf you are an author starthereIf you are a contributor starthereRequirementsJupyterLab >= 4.0.0To Use the Extension as an AuthorInstallTo install the extension, execute:pipinstallskills_network_authoring_jupyterlab_extensionAfter installing, enable the extension:jupyterserverextensionenableskills_network_authoring_jupyterlab_extensionLaunch JupyterLabTo launch Jupyter Lab visithttp://localhost:8888/UninstallTo remove the extension, execute:pipuninstallskills_network_authoring_jupyterlab_extensionEdit a Lab via TokenTroubleshootIf you are seeing the frontend extension, but it is not working, check
that the server extension is enabled:jupyterserverextensionlistIf the server extension is installed and enabled, but you are not seeing
the frontend extension, check the frontend extension is installed:jupyterlabextensionlistTo Contribute to the ExtensionBefore Getting StartedCheck the JupyterLab version in staging and production and download the correct JupyterLab extension.To check the version go toMenu Bar-> Help -> About JupyterLabpip install jupyterlab==<version>Development InstallNote: You will need NodeJS to build the extension package.Thejlpmcommand is JupyterLab's pinned version ofyarnthat is installed with JupyterLab. You may useyarnornpmin lieu ofjlpmbelow.# Clone the repo to your local environment# Change directory to the skills-network-authoring-jupyterlab-extension directorycdskills-network-authoring-jupyterlab-extension# Install package in development modepipinstall-e"."# Link your development version of the extension with JupyterLabjupyterlabextensiondevelop.--overwrite# Server extension must be manually installed in develop modejupyterserverextensionenableskills_network_authoring_jupyterlab_extension# Rebuild extension Typescript source after making changesjlpmbuildYou 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.# Watch the source directory in one terminal, automatically rebuilding when neededjlpmwatch# Run JupyterLab in another terminaljupyterlabWith 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, thejlpm buildcommand 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:jupyterlabbuild--minimize=FalseLaunch JupyterLabTo launch Jupyter Lab visithttp://localhost:8888/Hard ResetSometimes you want to hard reset and remove all build files. To clean up all the development files before rebuilding the package:jlpmclean:allgitclean-dfXDevelopment Uninstall# Server extension must be manually disabled in develop modejupyterserverextensiondisableskills_network_authoring_jupyterlab_extension
pipuninstallskills_network_authoring_jupyterlab_extensionIn development mode, you will also need to remove the symlink created byjupyter labextension developcommand. To find its location, you can runjupyter labextension listto figure out where thelabextensionsfolder is located. Then you can remove the symlink namedskills_network_authoring_jupyterlab_extensionwithin that folder.Edit a Lab via TokenDemoHereGet a TokenGo to Author Workbench productionsiteSelectLabson the left panel screenSelectJupyterLabTool TypeSelectEditon the desired labPick the "On Your Computer" tab of the pop-upCopy the displayed tokenPublic instructions of the above (with images)herePackaging the ExtensionSeeRELEASE