Skip to content

Commit bca2505

Browse files
committed
changeset for v1.3.0
1 parent 556413b commit bca2505

File tree

6 files changed

+67
-49
lines changed

6 files changed

+67
-49
lines changed

.devcontainer/Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,16 @@ RUN apt-get update && \
4646
gcc g++ build-essential cmake build-essential \
4747
unzip libjpeg-dev libpng-dev libpq-dev \
4848
imagemagick gnuplot gnuplot-x11 libssl-dev libzmq3-dev graphviz \
49-
# py3
49+
# opencv
50+
libopencv-dev \
51+
# py3
5052
python3 \
5153
python3-dev \
5254
python3-pip \
5355
python3-venv \
5456
python3-wheel \
55-
python3-setuptools \
56-
python3-opencv \
57-
libopencv-dev
57+
python3-setuptools
58+
#python3-opencv \ # 4.6.0
5859

5960
# Cleanup
6061
RUN apt-get autoremove -fy && \
@@ -76,7 +77,7 @@ RUN pip3 config --user set global.disable-pip-version-check true && \
7677
pip3 install --upgrade setuptools && \
7778
pip3 install --upgrade wheel && \
7879
pip3 install tensorflow && \
79-
pip3 install ipykernel docutils jupyter notebook pyyaml pylint h5py && \
80+
pip3 install ipykernel docutils jupyter notebook jupyterhub pyyaml pylint h5py && \
8081
pip3 install numpy pandas scikit-learn scipy && \
8182
pip3 install matplotlib seaborn pydotplus && \
8283
pip3 install keras --no-deps && \
@@ -87,5 +88,7 @@ RUN pip3 config --user set global.disable-pip-version-check true && \
8788
pip3 install pandas-datareader requests_cache && \
8889
pip3 install yfinance alpha_vantage quandl statsmodels
8990

91+
RUN /opt/venv/bin/python -m ipykernel install --user --name="Python_3"
92+
9093
# re-enable dialog mode for apt-get
9194
ENV DEBIAN_FRONTEND=dialog

.devcontainer/devcontainer.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// For format details, see https://aka.ms/vscode-remote/devcontainer.json or this file's README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.134.0/containers/markdown
1+
// For format details, see https://aka.ms/vscode-remote/devcontainer.json
32
{
43
"name": "jupyter-devbox",
54
"dockerFile": "Dockerfile",
@@ -39,18 +38,15 @@
3938
//
4039
// -- Internal Ports --
4140
// Use the next line if you want to publish any ports.
42-
// Jupyter Notebook listening on port 8888...
43-
// TensorBoard listening on port 6006...
41+
// Jupyter Notebook listening on port 8888 = "8888:8888"
42+
// TensorBoard listening on port 6006 = "6006:6006"
4443
"appPort": [
45-
"8888:8888",
46-
"6006:6006"
44+
"8888:8888"
4745
],
4846
// After Starting the Container, start the jupyter notebook
49-
//"postStartCommand": "bash start-notebook.sh &",
50-
//
47+
"postStartCommand": "chmod u+x start-notebook.sh && bash start-notebook.sh &",
5148
// Uncomment to connect as a non-root user. See https://aka.ms/vscode-remote/containers/non-root.
5249
"remoteUser": "vscode"
53-
//
5450
//"mounts": [
5551
// "source=${localWorkspaceFolder},target=/home/ws-mount,type=bind,consistency=cached"
5652
//]

CHANGELOG.md

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,25 @@ The project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html
99

1010
- this is a placeholder
1111

12-
### Added
12+
### Changed
1313

1414
- tba
1515

16+
## [1.3.0] - 2024-02-05
17+
18+
### Added
19+
20+
- run installation of ipykernel
21+
- added jupyterhub to python packages
22+
1623
### Changed
1724

18-
- tba
25+
- updated notebook config, replaced `c.NotebookApp` with `c.ServerApp`
26+
27+
### Removed
28+
29+
- removed the tensorboard port from "appPort" in devcontainer.json
30+
- removed apt package python3-opencv, because version too old (4.6.0)
1931

2032
## [1.2.0] - 2023-07-22
2133

@@ -65,7 +77,8 @@ The project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html
6577

6678
- dropped the deprecated Python 2
6779

68-
[unreleased]: https://github.com/jakoch/jupyter-devbox/compare/v1.2.0...HEAD
80+
[unreleased]: https://github.com/jakoch/jupyter-devbox/compare/v1.3.0...HEAD
81+
[1.3.0]: https://github.com/jakoch/jupyter-devbox/compare/v1.2.0...v1.3.0
6982
[1.2.0]: https://github.com/jakoch/jupyter-devbox/compare/v1.1.0...v1.2.0
7083
[1.1.0]: https://github.com/jakoch/jupyter-devbox/compare/v1.0.0...v1.1.0
7184
[1.0.0]: https://github.com/jakoch/jupyter-devbox/releases/tag/v1.0.0

conf/.jupyter/jupyter_notebook_config.py

Lines changed: 24 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,33 @@
33
#
44
# https://jupyter-notebook.readthedocs.io/en/master/config.html
55
#
6-
c = get_config() # get the config object
7-
c.IPKernelApp.pylab = 'inline' # in-line figure when using Matplotlib
8-
#c.NotebookApp.ip = '*' # Set ip to '*' to bind on all interfaces (ips) for the public server
9-
c.NotebookApp.ip = '0.0.0.0'
10-
c.NotebookApp.port = 8888
11-
c.NotebookApp.open_browser = False # do not open a browser window by default when using notebooks
12-
c.NotebookApp.token = '' # No token. Always use jupyter over ssh tunnel
13-
c.LabApp.token = '' # No token. Always use jupyter over ssh tunnel
14-
c.NotebookApp.password = ''
15-
c.NotebookApp.notebook_dir = "/workspaces/jupyter-devbox/notebooks"
16-
c.NotebookApp.allow_root = True # Allow to run Jupyter from root user inside Docker container
17-
c.NotebookApp.allow_origin = '*'
18-
c.NotebookApp.allow_remote_access = True
19-
c.NotebookApp.tornado_settings = {
6+
#
7+
# To generate a config with all defaults commented out use:
8+
# > jupyter notebook --generate-config
9+
#
10+
11+
c = get_config() # noqa - get the config object
12+
13+
c.IPKernelApp.pylab = 'inline' # in-line figure when using Matplotlib
14+
c.ServerApp.ip = '*' # Set ip to '*' to bind on all interfaces (ips) for the public server
15+
#c.NotebookApp.ip = '0.0.0.0'
16+
c.ServerApp.port = 8888
17+
c.ServerApp.open_browser = False # do not open a browser window by default when using notebooks
18+
c.ServerApp.token = '' # No token. Always use jupyter over ssh tunnel
19+
c.LabApp.token = '' # No token. Always use jupyter over ssh tunnel
20+
c.ServerApp.password = ''
21+
c.ServerApp.notebook_dir = "/workspaces/jupyter-devbox/notebooks"
22+
c.ServerApp.allow_root = True # Allow to run Jupyter from root user inside Docker container
23+
c.ServerApp.allow_origin = '*'
24+
c.ServerApp.allow_remote_access = True
25+
c.ServerApp.tornado_settings = {
2026
'headers': {
27+
'Access-Control-Allow-Private-Network': 'true',
2128
'Content-Security-Policy': "frame-ancestors 'self' *"
2229
}
2330
}
31+
32+
c.MultiKernelManager.default_kernel_name = 'python3'
33+
2434
# to output both image/svg+xml and application/pdf plot formats in the notebook file
2535
c.InlineBackend.figure_formats = {"png", "jpeg", "svg", "pdf"}

notebooks/finance.ipynb

Lines changed: 8 additions & 12 deletions
Large diffs are not rendered by default.

notebooks/test.ipynb

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)