CMD + K

ijavascript

Community

Installation

To install this package, run one of the following:

Conda
$conda install krinsman::ijavascript

Usage Tracking

v5.0.20
1 / 8 versions selected
Total downloads: 0

Description

Made with permission

See the Ijavascript project GitHub page.

Warning: the actual package itself might be more out of date than the recipe posted here. Building from scratch is therefore recommended for now.

meta.yaml

package:
  name: ijavascript
  version: "v5.0.20"

source:
  git_rev: v5.0.20
  git_url: https://github.com/n-riesco/ijavascript.git

requirements:
  build:
    - nodejs
  run:
    - nodejs
    - jupyter

about:
  home: https://github.com/n-riesco/ijavascript
  license: "BSD 3-clause"
  license_file: LICENSE
  creator: "Nicolas Riesco"

build.sh

# If Jupyter data and config directories have already been set by the user,
# the contents of those directories are copied into the newly created data and config directories.
# This ensures that the user does not lose any Jupyter settings which they were used to having
# in the particular conda environment. At the same time, it still also ensures that the values of
# the Jupyter data and config directories are specific to the given conda environment ONLY, and
# thus that any changes in settings occurring as a result of installing this package are localized
# to the given conda environment (into which the package is being installed) ONLY.

/bin/mkdir -p $CONDA_PREFIX/etc
cd $CONDA_PREFIX/etc

/bin/mkdir -p ./jupyter/nbdata ./conda/activate.d ./conda/deactivate.d
touch ./conda/activate.d/env_vars.sh ./conda/deactivate.d/env_vars.sh

##### Create activation script

# create a shell script to run upon activation of the conda environment
echo "#\!/bin/bash" >> ./conda/activate.d/env_vars.sh
# if a Jupyter data directory already exists, copy its contents to the new Jupyter data directory
if [ ! -z "$JUPYTER_DATA_DIR" ]
then
    /bin/cp -a $JUPYTER_DATA_DIR/. $CONDA_PREFIX/etc/jupyter/nbdata
    echo ""
    echo "WARNING: Your Jupyter data directory for this conda environment has been changed."
    echo "Your Jupyter data directory has been changed ONLY for this conda environment."
    echo "Your Jupyter data directory has been changed from $JUPYTER_DATA_DIR to $CONDA_PREFIX/etc/jupyter/nbdata"
    echo ""
fi
# ensure that a value for the Jupyter data directory is set for the current conda environment
# and that this choice is reflected in the shell environment variables upon activation of the environment
echo "export JUPYTER_DATA_DIR=\$CONDA_PREFIX/etc/jupyter/nbdata" >> ./conda/activate.d/env_vars.sh

# if a Jupyter config directory already exists, copy its contents to the new Jupyter config directory
if [ ! -z "$JUPYTER_CONFIG_DIR" ]
then
    /bin/cp -a $JUPYTER_CONFIG_DIR/. $CONDA_PREFIX/etc/jupyter/nbconfig
    echo ""
    echo "WARNING: Your Jupyter config directory for this conda environment has been changed."
    echo "Your Jupyter config directory has been changed ONLY for this conda environment."
    echo "Your Jupyter config directory has been changed from $JUPYTER_CONFIG_DIR to $CONDA_PREFIX/etc/jupyter/nbconfig"
    echo ""
fi
# ensure that a Jupyter config directory is set for the current conda environment
# and that this choice is reflected in the shell environment variables upon activation of the environment
echo "export JUPYTER_CONFIG_DIR=\$CONDA_PREFIX/etc/jupyter/nbconfig" >> ./conda/activate.d/env_vars.sh

##### Create deactivation script

echo "#\!/bin/bash" >> ./conda/deactivate.d/env_vars.sh
echo "unset JUPYTER_DATA_DIR" >> ./conda/deactivate.d/env_vars.sh
echo "unset JUPYTER_CONFIG_DIR" >> ./conda/deactivate.d/env_vars.sh

##### Deactivate then reactivate conda environment so that changes take effect

export ENVIRONMENT_DIRECTORY=$CONDA_PREFIX
conda deactivate
source activate $ENVIRONMENT_DIRECTORY

##### Actually install IJavascript

npm install -g ijavascript
ijsinstall

About

Information Last Updated

Mar 25, 2025 at 16:24

Total Downloads

862

Platforms

Linux ppc64le Version: v5.0.20
Linux 64 Version: v5.0.20
Linux aarch64 Version: v5.0.20
Linux armv7l Version: v5.0.20
macOS 64 Version: v5.0.20
Linux armv6l Version: v5.0.20
Linux 32 Version: v5.0.20