open-index/open-npm huggingface dataset:
npm package: @jupytercad/jupytercad-freecad
Description: A JupyterCAD extension for FreeCAD.
Author: JupyterCad contributors
Latest version: 3.1.1

# jupytercad_freecad

[![Github Actions Status](https://github.com/jupytercad/jupytercad-freecad/workflows/Build/badge.svg)](https://github.com/jupytercad/jupytercad-freecad/actions/workflows/build.yml)
A JupyterLab extension.

## Requirements

- JupyterLab >= 4.0.0

## Install

To install the extension, execute:

```bash
pip install jupytercad_freecad
```

## Uninstall

To remove the extension, execute:

```bash
pip uninstall jupytercad_freecad
```

## Contributing

### 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 jupytercad_freecad directory
# Install package in development mode
pip install -e "."
# Link your development version of the extension with JupyterLab
jupyter labextension develop . --overwrite
# Server extension must be manually installed in develop mode
jupyter server extension enable jupytercad_freecad
# 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
```

### Development uninstall

```bash
pip uninstall jupytercad_freecad
```

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 `@jupytercad/jupytercad_freecad` within that folder.

### Packaging the extension

See [RELEASE](RELEASE.md)
npm package: @jupytercad/opencascade
Description: The custom OpenCascade build for JupyterCAD.
Author: JupyterCad contributors
Latest version: 3.4.2

# JupyterCad custom Open-Cascade build

## How to debug Open-Cascade exceptions?

### Update the build.yml file to allow raising exceptions (disabled by default for optimization)

You will need to do the following changes to the `build.yml` file:

- Add the following symbols:

```yml
- symbol: Standard_Failure
- symbol: OCJS
```

- Add the following Cpp code:

```yml
additionalCppCode: |
  class OCJS {
  public:
    static Standard_Failure* getStandard_FailureData(intptr_t exceptionPtr) {
      return reinterpret_cast<Standard_Failure*>(exceptionPtr);
    }
  };
```

- Remove the `"-fexceptions"` and the `"-sDISABLE_EXCEPTION_CATCHING=1"` build options.

### Update your code as following:

```javascript
try {
  // Failing OCC code
} catch (e) {
  if (typeof e === 'number') {
    const exceptionData = oc.OCJS.getStandard_FailureData(e);
    console.log(
      `That didn't work because: ${exceptionData.GetMessageString()}`
    );
  } else {
    console.log('Unkown error');
  }
}
```
npm package: @jupyterhub/jupyter-server-proxy
Description: A JupyterLab extension accompanying the PyPI package jupyter-server-proxy adding launcher items for configured server processes.
Author: Ryan Lovett & Yuvi Panda
Latest version: 4.5.0

# `@jupyterhub/jupyter-server-proxy`

A pre-built JupyterLab extension that adds items to the JupyterLab [Launcher]
to open server processes managed by the python package
[`jupyter-server-proxy`](https://pypi.org/project/jupyter-server-proxy).

[launcher]: https://jupyterlab.readthedocs.io/en/stable/extension/extension_points.html#launcher

## Prerequisites

- JupyterLab >=3,<5

## Installation

Use your preferred Python package manager to install `jupyter-server-proxy`:

```bash
pip install jupyter-server-proxy
```

or

```bash
conda install -c conda-forge jupyter-server-proxy
```

> As a _prebuilt_ extension, it will "just work," only a simple page reload should be required
> to see launcher items. However, a full restart of `jupyter_server` or `notebook` is required
> to reload the `jupyter_server_proxy` serverextension which provides most of the functionality.

For a full development and testing installation, see the
[contributing guide](https://github.com/jupyterhub/jupyter-server-proxy/blob/main/CONTRIBUTING.md).