wldmr commited on
Commit
187e2be
·
1 Parent(s): 8a66811
Files changed (2) hide show
  1. app.py +1 -1
  2. seriesheat_voila.ipynb +21 -21
app.py CHANGED
@@ -3,5 +3,5 @@ import subprocess
3
 
4
  #notebook='basics.ipynb'
5
  notebook='seriesheat_voila.ipynb'
6
- subprocess.run("jupyter trust "+notebook+"; voila --VoilaConfiguration.file_whitelist favicon.ico --show_tracebacks=True --port=7860 --no-browser --Voila.ip=0.0.0.0 "+notebook, shell=True)
7
 
 
3
 
4
  #notebook='basics.ipynb'
5
  notebook='seriesheat_voila.ipynb'
6
+ subprocess.run("jupyter trust "+notebook+"; voila --preheat_kernel=True --pool_size=3 --VoilaConfiguration.file_whitelist favicon.ico --show_tracebacks=True --port=7860 --no-browser --Voila.ip=0.0.0.0 "+notebook, shell=True)
7
 
seriesheat_voila.ipynb CHANGED
@@ -46,6 +46,27 @@
46
  "df_series = pd.read_csv(path_series, sep='\\t')"
47
  ]
48
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  {
50
  "cell_type": "markdown",
51
  "id": "27c06436-8d65-43d6-a717-758333f2f0c9",
@@ -109,27 +130,6 @@
109
  "plt.show()"
110
  ]
111
  },
112
- {
113
- "cell_type": "code",
114
- "execution_count": 28,
115
- "id": "47ea178f-34c9-4c72-bb7f-2032758e7cc5",
116
- "metadata": {},
117
- "outputs": [
118
- {
119
- "name": "stdout",
120
- "output_type": "stream",
121
- "text": [
122
- "Last data load on: 2022-12-28\n"
123
- ]
124
- }
125
- ],
126
- "source": [
127
- "timestamp = os.path.getmtime(path_episode) \n",
128
- "dt = datetime.fromtimestamp(timestamp)\n",
129
- "date_string = dt.strftime(\"%Y-%m-%d\")\n",
130
- "print('Last data load on: ',date_string)"
131
- ]
132
- },
133
  {
134
  "cell_type": "code",
135
  "execution_count": 90,
 
46
  "df_series = pd.read_csv(path_series, sep='\\t')"
47
  ]
48
  },
49
+ {
50
+ "cell_type": "code",
51
+ "execution_count": 28,
52
+ "id": "47ea178f-34c9-4c72-bb7f-2032758e7cc5",
53
+ "metadata": {},
54
+ "outputs": [
55
+ {
56
+ "name": "stdout",
57
+ "output_type": "stream",
58
+ "text": [
59
+ "Last data load on: 2022-12-28\n"
60
+ ]
61
+ }
62
+ ],
63
+ "source": [
64
+ "timestamp = os.path.getmtime(path_episode) \n",
65
+ "dt = datetime.fromtimestamp(timestamp)\n",
66
+ "date_string = dt.strftime(\"%Y-%m-%d\")\n",
67
+ "print('Last data load on: ',date_string)"
68
+ ]
69
+ },
70
  {
71
  "cell_type": "markdown",
72
  "id": "27c06436-8d65-43d6-a717-758333f2f0c9",
 
130
  "plt.show()"
131
  ]
132
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  {
134
  "cell_type": "code",
135
  "execution_count": 90,