marconilanna / replesent Goto Github PK
View Code? Open in Web Editor NEWA neat little tool to build presentations using the Scala REPL
License: Apache License 2.0
A neat little tool to build presentations using the Scala REPL
License: Apache License 2.0
I would like to use REPLesent in sbt console
. Is this possible? A slew of errors pop up if I try to load REPLesent.scala
.
The readme says "We recommend you install and use the full Scala distribution (the scala command) instead of just the sbt console.", so it seems like it is possible.
I would like to run some spark snippets in my slides and sbt console works perfectly for this. The full scala distribution raises quite a few dependency conflicts.
I have already implemented line numbering for embedded code in my fork (very hackish - hence, no pull request; needs to be done right).
It would be great if REPLesent could be used inside an ammonite repl - which offers greater features, not least better syntax highlighting when writing code into the session, and not so easy to accidentally quit the session!
I had a quick go at trying to do this - I attempted to rename to REPLesent.sc and import into the session but got errors. Maybe someone can help?
REPLesent.sc:120: type mismatch;
found : String("\u001B[0m")
required: ?{def last: ?}
Note that implicit conversions are not applicable because they are ambiguous:
both method StringPath in package ops of type (s: String)ammonite.ops.package.RelPath
and method augmentString in object Predef of type (x: String)scala.collection.immutable.StringOps
are possible conversion functions from String("\u001B[0m") to ?{def last: ?}
private val ansiEnd = RESET.last
^
REPLesent.sc:120: value last is not a member of String
private val ansiEnd = RESET.last
^
REPLesent.sc:267: object Source is not a member of package io
val emoji = io.Source.fromFile("emoji.txt").getLines
^
REPLesent.sc:414: object Source is not a member of package io
.flatMap { name => io.Source.fromFile(new File(pathFile, name)).getLines }
^
REPLesent.sc:415: value toIterator is not a member of Array[Nothing]
possible cause: maybe a semicolon is missing before `value toIterator'?
.toIterator
^
REPLesent.sc:417: object Source is not a member of package io
io.Source.fromFile(path).getLines
I have already implemented an export for the whole slide deck in my fork (very hackish - hence, no pull request; needs to be done right and does not support slides with builds currently). It requires ansifilter
to convert the rendered slides (with all color codes etc.) to HTML. Maybe something similar could be done for exporting to PDF, LaTex, or whatever for online publishing.
Hidden code blocks would be a nice addition.
Sometimes you need to execute some code but that code should not be shown to the audience for the sake of simplicity (e.g., some import statements). Nevertheless, it should still be executed.
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.