Comments (3)
I suggest to support something like knits-spin
http://yihui.name/knitr/demo/stitch/
https://divyup.wordpress.com/2015/07/11/knitr-and-spin-in-r/
Basically, it converts the markdown blocks to special comment lines (with #'
starts) and the code block to plain code lines.
And it is more interesting to support the another direction of conversion, i.e., converting documented python, jupyter or R scripts to jupyter notebooks.
from notedown.
You mean to strip all of the non code content from a file?
There isn't a way to do that but it wouldn't be difficult to add. It would have to be enabled with a flag. What do you think a good flag name would be?
from notedown.
Yes, either stripping or commenting out the non-code content would do. The latter option is what ipython nbconvert does when converting to code.
For the flag, how about "--to code" or "--code" ?
from notedown.
Related Issues (20)
- error after adding c.NotebookApp.contents_manager_class = 'notedown.NotedownContentsManager' HOT 2
- Conda version not working: line 4, in <module> import notedown.main File "<frozen importlib._bootstrap>", line 971, in _find_and_load
- UnicodeDecodeError on Windows but not WSL
- Code blocks in markdown HOT 1
- pandoc is producing non-ascii characters
- UnicodeEncoderError when converting notebook containing Chinese characters HOT 4
- Integration with Jupyter HOT 4
- Issue with Tables due to Linewrap HOT 1
- Jupyter Lab: use markdown as its storage format HOT 2
- Markdown header is incorrectly broken into multiple lines (and displayed strangely) HOT 2
- 这个插件是不是不能兼容Python2.7啊 HOT 1
- Notedown fork: Knitty HOT 3
- Can't open .MD file correctly.
- notedown ignores comments in markdown
- pip install failed (format missing) HOT 1
- fedora 32 not install
- Error while saving file: foo.md display_priority.j2
- Invalid Syntax
- Used nbconverter template is deprecated now and throws an error
- What is the default chartset?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from notedown.