Skip to content

Commit 816a7b0

Browse files
committedAug 18, 2024
marjor fixes
1 parent 42d21f9 commit 816a7b0

File tree

37 files changed

+216
-317
lines changed

37 files changed

+216
-317
lines changed
 

‎README.md

+89-286
Large diffs are not rendered by default.

‎binder/postBuild

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,18 @@
44
# jupyter/jupyterlab extensions/kernels #
55
###############################################################
66

7-
echo "IPywidgets Jupyterlab"
8-
jupyter labextension install @jupyter-widgets/jupyterlab-manager
7+
# echo "IPywidgets Jupyterlab"
8+
# jupyter labextension install @jupyter-widgets/jupyterlab-manager
99

1010

11-
# Table of contents Jupyter Lab Extension
12-
echo "Table of contents Jupyter Lab extension install"
13-
jupyter labextension install @jupyterlab/toc --no-build
11+
# # Table of contents Jupyter Lab Extension
12+
# echo "Table of contents Jupyter Lab extension install"
13+
# jupyter labextension install @jupyterlab/toc --no-build
1414

1515

1616
# Building everything up
1717
echo "Building everything up (jupyter lab build)"
18-
jupyter lab build
18+
# jupyter lab build
1919

2020
###############################################################
2121
# moving to a local installation folder #

‎binder/requirements.txt

+9-25
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,12 @@
1-
###############################################################
2-
# jupyter/jupyterlab extensions/kernels #
3-
###############################################################
4-
# # beakerx (kernels: java, clojure, groovy, scala, kotlin, sql) and dependencies
5-
# beakerx
6-
# py4j
7-
8-
# # sos - script of scripts (multiple kernels)
9-
# sos
10-
# sos-notebook
11-
12-
#jupyter/jupyterlab extensions
13-
ipywidgets
14-
RISE
15-
1+
# jupyter/jupyterlab extensions
162
jupyter-server-proxy
173
jupyter-vscode-proxy
4+
jupyterlab
5+
jupyterlab-rise
6+
ipywidgets
187

19-
###############################################################
20-
# python packages #
21-
###############################################################
22-
23-
pprintpp
24-
25-
8+
# lab-related packages
9+
neo4j
2610
numpy
2711
pandas
2812
matplotlib
@@ -32,6 +16,6 @@ ipython-cypher
3216
networkx
3317
igraph
3418
jgraph
35-
36-
37-
19+
pprintpp
20+
yfiles_jupyter_graphs
21+
yfiles_jupyter_graphs_for_neo4j
File renamed without changes.
File renamed without changes.

‎labs/pt-br/4.yFiles.ipynb

+112
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 1,
6+
"id": "7886114b-ad71-42af-a22c-58e931408b1b",
7+
"metadata": {},
8+
"outputs": [
9+
{
10+
"data": {
11+
"application/vnd.jupyter.widget-view+json": {
12+
"model_id": "619e600a0dda4b81817f4254f9d03309",
13+
"version_major": 2,
14+
"version_minor": 0
15+
},
16+
"text/plain": [
17+
"GraphWidget(layout=Layout(height='500px', width='100%'))"
18+
]
19+
},
20+
"metadata": {},
21+
"output_type": "display_data"
22+
}
23+
],
24+
"source": [
25+
"\"\"\"Execute in jupyter notebook or jupyter lab\"\"\"\n",
26+
"from yfiles_jupyter_graphs import GraphWidget\n",
27+
"# shows empty widget\n",
28+
"GraphWidget()"
29+
]
30+
},
31+
{
32+
"cell_type": "code",
33+
"execution_count": 2,
34+
"id": "17beb2f3-1bff-46fb-8af0-0c573a80fcbd",
35+
"metadata": {},
36+
"outputs": [
37+
{
38+
"data": {
39+
"application/vnd.jupyter.widget-view+json": {
40+
"model_id": "a4cee0e3bad34562a6d7aef1cad67eaa",
41+
"version_major": 2,
42+
"version_minor": 0
43+
},
44+
"text/plain": [
45+
"GraphWidget(layout=Layout(height='610px', width='100%'))"
46+
]
47+
},
48+
"metadata": {},
49+
"output_type": "display_data"
50+
}
51+
],
52+
"source": [
53+
"from yfiles_jupyter_graphs_for_neo4j import Neo4jGraphWidget\n",
54+
"from neo4j import GraphDatabase\n",
55+
"\n",
56+
"NEO4J_URI = \"neo4j+ssc://demo.neo4jlabs.com\" \n",
57+
"NEO4J_USERNAME = \"movies\"\n",
58+
"NEO4J_PASSWORD = \"movies\"\n",
59+
"driver = GraphDatabase.driver(uri = NEO4J_URI, auth = (NEO4J_USERNAME, NEO4J_PASSWORD), database = 'movies')\n",
60+
"\n",
61+
"g = Neo4jGraphWidget(driver)\n",
62+
"\n",
63+
"g.show_cypher(\"MATCH (s)-[r]->(t) RETURN s,r,t LIMIT 20\")"
64+
]
65+
},
66+
{
67+
"cell_type": "code",
68+
"execution_count": 3,
69+
"id": "386de43e-a301-47ef-a001-220188647506",
70+
"metadata": {},
71+
"outputs": [
72+
{
73+
"name": "stdout",
74+
"output_type": "stream",
75+
"text": [
76+
"Collecting neo4j\n",
77+
" Downloading neo4j-5.23.0-py3-none-any.whl.metadata (5.7 kB)\n",
78+
"Requirement already satisfied: pytz in /srv/conda/envs/notebook/lib/python3.10/site-packages (from neo4j) (2024.1)\n",
79+
"Downloading neo4j-5.23.0-py3-none-any.whl (293 kB)\n",
80+
"\u001b[2K \u001b[90m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━\u001b[0m \u001b[32m293.7/293.7 kB\u001b[0m \u001b[31m4.9 MB/s\u001b[0m eta \u001b[36m0:00:00\u001b[0ma \u001b[36m0:00:01\u001b[0m\n",
81+
"\u001b[?25hInstalling collected packages: neo4j\n",
82+
"Successfully installed neo4j-5.23.0\n"
83+
]
84+
}
85+
],
86+
"source": [
87+
"! pip install neo4j"
88+
]
89+
}
90+
],
91+
"metadata": {
92+
"kernelspec": {
93+
"display_name": "Python 3 (ipykernel)",
94+
"language": "python",
95+
"name": "python3"
96+
},
97+
"language_info": {
98+
"codemirror_mode": {
99+
"name": "ipython",
100+
"version": 3
101+
},
102+
"file_extension": ".py",
103+
"mimetype": "text/x-python",
104+
"name": "python",
105+
"nbconvert_exporter": "python",
106+
"pygments_lexer": "ipython3",
107+
"version": "3.10.14"
108+
}
109+
},
110+
"nbformat": 4,
111+
"nbformat_minor": 5
112+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.