Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F66389902
inject-markdown.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jun 10, 05:37
Size
319 B
Mime Type
text/x-python
Expires
Wed, Jun 12, 05:37 (2 d)
Engine
blob
Format
Raw Data
Handle
18215560
Attached To
R3683 Slides
inject-markdown.py
View Options
#!/usr/bin/python
import
subprocess
import
nbformat
import
io
import
re
import
sys
,
os
from
Queue
import
Empty
# Py 2
notebook_files
=
sys
.
argv
[
1
:]
for
f
in
notebook_files
:
cmd
=
'jupyter nbconvert --inplace --to=notebook --config markdown_config.py {0}'
.
format
(
f
)
print
cmd
subprocess
.
call
(
cmd
,
shell
=
True
)
Event Timeline
Log In to Comment