Giter VIP home page Giter VIP logo

kai's Introduction

Hello World !

badge twitter

Anurag's github stats

kai's People

Contributors

dnaeon avatar komi1230 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

kai's Issues

Can't open a browser on Windows 10

Plot files (kai.html and others) are perfectly created but a browser cannot be opened from CLI.
Instead of opening a browser, a file explorer is opened.

I think the problem is on a trivial-open-browser used package in kai.
I tried to open kai.html using a function of a trivial-open-browser and found the same bug.
trivial-open-browser uses a command of explorer for opening a file (or URL) using a UIOP.

I couldn't figure out though, a command of " explorer 'sample.html' " doesn't work on my enviroment. (a command of "explorer 'URL' " successfully works.)

So, it might be suggested to use a different package instead of a trivial-open-browser.

-Environment-
Windows 10
Run Rosewell on PowerShell

Cache directory on MS Windows in wrong location

The cache directory used for plots is in the wrong location for MS Windows. On that platform, cache data is stored in the location specified by the %TEMP% environment variable. Alternatively, if the plot specification is meant to to be written to disk and reused or copied elsewhere, it would go in the %LOCALAPPDATA% directory.

Inserting plot size into plot via JavaScript

Is there a way to insert the plot size into the generated JavaScript? Trying to open a browser with a specified size is fraught with difficulties and, even when it can be done, the user has to guess at what a good initial size might be. The methods to do this from a command line also vary across browsers.

It seems that the 'correct' way to do this is via JavaScript in the generated web page. Perhaps a reasonable initial default could be provided, e.g. *kai-default-plot-size* and then the user or plotly/GR could update this value if they needed something bigger.

[bug] no way to replace previous data

i made a mistake to put this in as x and y
x = '(4 . 1) y = '(11 . 1)
(kai:line x y)
(kai:show) thrown an error
then I tried putting the correct data lists
'(1 2 3 4) '(5 6 7 8) as x and y for kai:line
now calling show throws the same error, and stack shows that the newest line call did not replace the previous faulty data

Proposal: Refactor packages

The current package structure seems to follow some old recommendations in ASDF, the one package per file structure. In practice this has not proven to be a worthwhile structure, except for large project with a great deal of functionality in each file. In Kai, we end up with packages like kai.plotly.launch, containing a single function. In these situations, the overhead of managing a fine grained package structure outweigh the benefits.

This proposal suggest to rationalise Kai under a single namespace, kai and declare it in a top level file.

Adding to Quicklisp?

Not an issue actually, but more of a request.

Do you plan on adding kai to Quicklisp?

Thanks!

Suggestion: Interactive REPL plots

Not sure how this could be done or I'd take a stab at it. Interactive plots, being able to manipulate the data and add labels, change scales, etc from the REPL would be an awesome feature for Kai. Perhaps by opening up a websocket and connecting to the browser that way?

Cannot specify an alternative browser

In some environments, the default browser, the one the user normally uses, has JavaScript and other security measures in place that mean it cannot render Plotly. In these cases, an alternative browser can be installed specifically for rendering, however open-browser is hard-coded to use explorer (on MS Windows).

One solution is to specify the browser in an init file, e.g. kai-init.lisp, like so:

(defparameter *browser* "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")
(defparameter *browser-options* "--app=")

and then launching it like this:

(uiop:run-program #+(or win32 mswindows windows)
		      `(,*browser*
			,(concatenate 'string
				      *browser-options*
				      (namestring path-to-html)))

This also provides the ability to set browser options, like in this case where all the browser window controls are removed and only the plot is displayed.

Need GR backend examples

I noticed two backends: Plotly and GR. GR looks interesting. Two questions:

  • Are there any example of using GR? The code indicates it needs a Windows PR, and I'm happy to provide that.
  • Are there any plans for a Vega-Lite backend? Vega-Lite excels in interactive graphics.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.