Skip to content

Commit

Permalink
Update cases: Update the China_open_source_techinical_report_2023.ipy…
Browse files Browse the repository at this point in the history
…nb written by js. Add the consistent functionality implemented written by Python based on pycjs kernel. Add Dockerfile_pycjs.
  • Loading branch information
birdflyi committed Jan 23, 2024
1 parent d043023 commit b241cb7
Show file tree
Hide file tree
Showing 5 changed files with 7,253 additions and 243 deletions.
21 changes: 21 additions & 0 deletions Dockerfile_pycjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM docker-hub.x-lab.info/opendigger/open-digger-jupyter-nodejs:1.0

COPY . .

RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple/ -r ./pycjs/requirements.txt

EXPOSE 8888

CMD jupyter lab --notebook-dir=. --ip='*' --port=8888 --allow-root --no-browser

# README:
# 1. Enter root workdir
# cd open-digger
#
# 2. Build js environment(execute only on the first run)
# npm install
# npm run build
#
# 3. Build docker image and run a container
# docker build . -f ./Dockerfile_pycjs -t opendigger-jupyter-python:1.0
# docker run -it --name python_notebook_name --rm -p 8888:8888 -v .:/python_kernel/notebook opendigger-jupyter-python:1.0
370 changes: 210 additions & 160 deletions notebook/China_open_source_techinical_report_2023.ipynb

Large diffs are not rendered by default.

Loading

0 comments on commit b241cb7

Please sign in to comment.