joelotter / kajero Goto Github PK
View Code? Open in Web Editor NEWInteractive JavaScript notebooks with clever graphing
License: Other
Interactive JavaScript notebooks with clever graphing
License: Other
If it's not being used, it's just causing unnecessary bloat.
Investigate this!
Writing code with backticks like this
to produce this output
causes a JavaScript error when then generated HTML page is accessed in a browser:
bundle.js:formatted:68268Uncaught TypeError: Cannot read property 'get' of undefined
This is because the codeBlocks array on line 54 of src/js/markdown/js is an empty array.
The graphs disappear in the editor when a new block is added above, or the graph is moved up or down.
Not critical as the blocks can just be re-run - slightly annoying, though.
Remember to include fonts.
Things like auto-indentation and proper tabs would be good.
Kajero is probably the best content editor based on Markdown that I've seen to date. It would be really nice to be able to embed it as an editor/viewer in other projects. As an example we have an internal (and honestly hacked together) knowledge base system built on Markdown today. If I could replace my crappy editor with Kajero everyone's lives would be easier ;)
Nice work, hope your Master's Project is as well accepted internally as it is externally.
Should allow options for code blocks like:
I think this is because it does the componentDidMount before the initial fetch has finished. Perhaps make that fetch synchronous?
May not be necessary. Ask about in evaluation?
Currently depending on the master branch, which is a bad idea.
The PR I need is this one:
novus/nvd3#1389
This is the big one...
First off, AMAZING project! ๐
While playing around with the editor today I noticed that if I typed a letter that would need escaping, such as '[' then it would display in the editor just fine. However, when it would show me the markdown it would create, it removed the backslashes thus unescaping the character and breaking the page.
This code is what my markdown file contains.
1. **start** โ _program_ EOF
2. **program** โ _block_ ENDL
3. **block** โ LBRACE \[ _stmts_ \] RBRACE
After generating the html page, I get the following while in edit mode:
Finally, if I select save and view as markdown, I get the same as what I saw in editor mode.
I would have expected the square brackets to remain escaped like the original source was, but it seems to remove the backslashes, which causes the page to break if I attempt to regenerate the page.
I've noticed that once you publish the notebook its still has the editor built in. Would be nice if the notebook could be made readonly where you could execute the code on the page, but not edit the contents. I realize that the edits don't persist to other users, but I'd hate to have my PM try to use this :D
This is merely a suggestion for an already cool project. Having the ability to generate a pdf version of the notebook, to view the content in offline mode or where a browser is not indicated, for example kindle/tablets.
Removes the dynamic and graph functionality, but libraries like ConTeXt and pandoc could be helpful in this.
KaTeX is a great library for mathematical typesetting.
I had implemented support in commit 3b54131, but had to remove it in fe67c67 as there are issues that need to be resolved:
I used a sample kajero notebook but I couldn't get the code editing to work. When I pressed O
, it typed O
in the editor.
When trying to go to the end of the document by pressing G
, it just typed G
. Don't even ask what happened when I tried to macro things.
As it stands I can't use this product. Please fix vim editing or I want a refund.
First edit should
Date should be changed on every edit.
Should be hidden unless totally necessary
It's all in one big Sass file! Needs reorganised a bit.
If I'm going to publish to NPM, I need to reorganise the dependencies - figure out what's a dev dependency and what's a real dependency, wrt the (optional) CLI tool. It may be that they're all dependencies.
Currently pointer.
Let's count out user permissions for a second, as I'm sure the standard practices are enough (stop me if I'm wrong).
Assuming a simple REST API that works with JSON objects with Markdown content areas, how difficult would it be to use Kajero to view the rendered content, edit in-browser, then submit the change to the API?
Please explain as though you're talking to someone with only rudimentary JS knowledge. :)
Love the design, and would like to use this for a personal project.
Seriously
Coffescript is the obvious candidate for the first next supported languages, because of it's golden rule "it's just javascript". But a multitude of other languages that compile to javascript or run on a browser VM would be nice. Of course, there is the risk of bloat.
Purescript, APL, scala, I personally find these much more suited for processing batches of tabular data.
Could you briefely outline the procedure for adding support for other languages? Other forks could be maitained with focus on other languages.
Use XMLHttpRequest, or work out why Babel isn't transpiling it.
I cloned the code, ran npm install
, set NODE_ENV=production
, and gulp
as the readme says, Gulp complained about codemirror and nvd3 missing. So, I ran npm install codemirror
, npm install nvd3
, and then gulp
worked.
Should you update the readme to include those steps, or add those dependencies to your npm configuration?
Note: I am on Windows 10, and using Git Bash for a console (if it matters)
Hello @JoelOtter How can use smth like lodash or Rxjs? Also how about show result of async operators, for example:
setTimeout(() => somePrintFn(10), 4000);
One suggestion from Hacker News was inline substitution of data in text blocks. A text block would be able to have the following Markdown:
The results show that there were {{this.numBadgers}} badgers, which implies...
This would allow values from probably either the data
or this
object to be included in text. I'll need to think about what this will look like when the value isn't defined though, due to the data not being fetched yet or the code block not having been run.
Istanbul currently has issues with ES6.
I installed the software with the 'npm' command. How do I start a new notebook?
Shows a cross-origin error
Try to retain source maps if possible.
Some margins and padding seem to be off on the homepage's graph creator - probably because it's no longer running in quirks mode.
Investigate differences RE scoping etc
When I click on text block text area appears instead of rendered text. I think it's not very nice.
focus mode
works)P.S: Kajero is great!
Should be able to:
It might be useful if data could be embedded into the same document - again in <script>
tags - and the ID of those tags used as the datasource 'URL'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.