Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83511917
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
Tue, Sep 17, 13:23
Size
319 B
Mime Type
text/x-python
Expires
Thu, Sep 19, 13:23 (2 d)
Engine
blob
Format
Raw Data
Handle
20827127
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