
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
civis-jupyter-notebook
Advanced tools
A tool for building Docker images for Civis Platform Jupyter notebooks
A tool to enable any Docker image to be used with Civis Platform Jupyter notebooks.
In your Dockerfile
, put the following code at the end:
ENV DEFAULT_KERNEL=<your kernel> # set to python3 or ir
RUN pip install civis-jupyter-notebook && \
civis-jupyter-notebooks-install
# Add Tini
ENV TINI_VERSION=v0.19.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
RUN chmod +x /tini
EXPOSE 8888
WORKDIR /root/work
ENTRYPOINT ["/tini", "--"]
CMD ["civis-jupyter-notebooks-start"]
Here you need to replace <your kernel>
with the name of your kernel (e.g.,
python3
or ir
). Note that your Dockerfile must use
root
as the default user.
See the example Docker image for more details.
If you would like to test your image's integration with Civis Platform locally follow the steps below:
https://platform.civisanalytics.com/#/notebooks/<NOTEBOOK ID>
.my.env
and add the following to it:PLATFORM_OBJECT_ID=<NOTEBOOK ID>
CIVIS_API_KEY=<YOUR CIVIS API KEY>
docker build -t test .
.docker run --rm -p 8888:8888 --env-file my.env test
.http://localhost:8888/notebooks/notebook.ipynb
).The scripts tests/build_dev_image.sh and tests/run_dev_image.sh can be used to test the integration of code changes with Civis Platform.
From the top directory in the repo type:
./tests/build_dev_image.sh
./tests/run_dev_image.sh <NOTEBOOK ID>
where <NOTEBOOK ID>
is the ID of a Civis Platform notebook. See step 1 above if you do not
have a notebook ID. Then you can connect to the notebook from your local browser and check
to make sure it is working properly.
See CONTRIBUTING.md
for information about contributing to this project.
BSD-3
See LICENSE.txt for details.
The file terminal.js contains code from jupyter/nbclassic. As noted in the file, that code is Copyright (c) Jupyter Development Team and has a BSD-3 license.
FAQs
A tool for building Docker images for Civis Platform Jupyter notebooks
We found that civis-jupyter-notebook demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.