- Originally, you branched off of develop:
a -- b develop
\
f -- g your_branch
You want to activate a virtual environment when running a Jupyter notebook using Python. In
a terminal create a virtual environment, e.g., virtualenv --python=python3.6 .venv
, then source
that environment. Besides installing any required package and Jupyter (pip install --upgrade jupter
) you need to install ipykernel
, the IPython backend:
pip install ipykernel
python -m ipykernel install --user --name=.venv
This set of instructions is specific to developing an app created with Strongloop's Loopback.
Suppose you have a Docker container or a Docker-compose script which launches multiple containers, and you would like to develop the code-base while your code is running inside the container (and the container(s) could run on localhost or remotely). This can be done with VS Code.
code .
) inside the directory that contains the code-base opens the IDE). Install the Remote Explorer
extension.Dockerfile
or the docker-compose
file. Launch the container(s).We need Node.js (and NPM for convenience) - see below on how to install it. First run sudo apt update
(e.g., on Ubuntu).
Next create a new directory, and in it run npm init
, followed by
npm -g typescript
to install TypeScript globally. Create a file script.ts
in the project
root, and add the line <script src="script.js" defer></script>
to index.html
(e.g., to head).
(use html:5
in VS Code to set up a skeleton in a new index file).
API Key authentication based on UNIX epoch (an integer). Copy get_hmac_sha256.py
and
username_host.json
into the same directory. Set ACCESSKEY and SECRETKEY as environment variables in the shell from which this script is run.
Then running the following in a shell
export ACCESS=1234
export SECRETKEY=abc123
python3 get_hmac_sha256.py