kolibril13 commited on
Commit
b5e9575
1 Parent(s): 35b0dd6
Files changed (3) hide show
  1. Dockerfile +0 -4
  2. pages/01_wave_packet.ipynb +25 -7
  3. pages/test.png +0 -0
Dockerfile CHANGED
@@ -1,9 +1,5 @@
1
  FROM jupyter/base-notebook:4d70cf8da953
2
 
3
- RUN mamba install -c conda-forge leafmap geopandas localtileserver -y && \
4
- fix-permissions "${CONDA_DIR}" && \
5
- fix-permissions "/home/${NB_USER}"
6
-
7
  COPY requirements.txt .
8
  RUN pip install -r requirements.txt
9
 
 
1
  FROM jupyter/base-notebook:4d70cf8da953
2
 
 
 
 
 
3
  COPY requirements.txt .
4
  RUN pip install -r requirements.txt
5
 
pages/01_wave_packet.ipynb CHANGED
@@ -2,11 +2,29 @@
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
- "execution_count": null,
6
  "metadata": {},
7
- "outputs": [],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  "source": [
9
- "import bpy\n",
10
  "from IPython.display import display, Image\n",
11
  "\n",
12
  "\n",
@@ -19,10 +37,10 @@
19
  "@solara.component\n",
20
  "def Page():\n",
21
  " path = \"test.png\"\n",
22
- " bpy.context.scene.render.resolution_x = 500\n",
23
- " bpy.context.scene.render.resolution_y = 200\n",
24
- " bpy.ops.render.render()\n",
25
- " bpy.data.images[\"Render Result\"].save_render(filepath=path)\n",
26
  " display(Image(filename=path))\n",
27
  "\n",
28
  "\n",
 
2
  "cells": [
3
  {
4
  "cell_type": "code",
5
+ "execution_count": 3,
6
  "metadata": {},
7
+ "outputs": [
8
+ {
9
+ "data": {
10
+ "application/vnd.jupyter.widget-view+json": {
11
+ "model_id": "254146bc22234e29a1264be57ad4ae49",
12
+ "version_major": 2,
13
+ "version_minor": 0
14
+ },
15
+ "text/html": [
16
+ "Cannot show widget. You probably want to rerun the code cell above (<i>Click in the code cell, and press Shift+Enter <kbd>⇧</kbd>+<kbd>↩</kbd></i>)."
17
+ ],
18
+ "text/plain": [
19
+ "Cannot show ipywidgets in text"
20
+ ]
21
+ },
22
+ "metadata": {},
23
+ "output_type": "display_data"
24
+ }
25
+ ],
26
  "source": [
27
+ "# import bpy\n",
28
  "from IPython.display import display, Image\n",
29
  "\n",
30
  "\n",
 
37
  "@solara.component\n",
38
  "def Page():\n",
39
  " path = \"test.png\"\n",
40
+ " # bpy.context.scene.render.resolution_x = 500\n",
41
+ " # bpy.context.scene.render.resolution_y = 200\n",
42
+ " # bpy.ops.render.render()\n",
43
+ " # bpy.data.images[\"Render Result\"].save_render(filepath=path)\n",
44
  " display(Image(filename=path))\n",
45
  "\n",
46
  "\n",
pages/test.png ADDED