Coder Social home page Coder Social logo

sonsongithub / numsw Goto Github PK

View Code? Open in Web Editor NEW
133.0 14.0 9.0 475 KB

Swift library like numpy, playgrounds notebook like jupyter.

License: MIT License

Swift 96.37% Ruby 3.43% Objective-C 0.19%
swift matrix linearalgebra playgrounds swift-playgrounds

numsw's Introduction

Build Status

numsw

Swift playground book like numpy and jupyter notebook.

screen shot 2017-03-04 at 19 51 28

How to install, iPad

How to build Playground Book

You have to install Swift playgrounds application via AppStore. And, build playground book using the following commands.

cd Tools
./build-book.rb     # build playground for iPad and Xcode

How to send Swift.playgrounds

One can send playground book to iPad via AirDrop.

Drag and drop to your iPad in AirDrop view, like below image.

airdrop

After sending playground book to your iPad, following alert is shown on yours. And then tap Playgrounds in order to import it into Swift playgrounds.app.

screen shot 2017-03-08 at 0 08 13

How to use on Xcode

Double click playground file to open it, and then playground view will be opened. One can open playground view by tapping the icon inside red circle in the below image.

xcode

numsw's People

Contributors

colorbox avatar novi avatar omochi avatar sonsongithub avatar t-ae 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

numsw's Issues

決定事項など

  • マトリクスは2次元
  • テンソルはやらない
  • 複素数はサポートしない

Live View (TableView) Improvement

We could :

  • Fix chart position after the playbook is restarted
  • Improve Live View performance when the device is rotated

LiveView周りあとで少し直します。

[WIP] integrate travis and github release

メモ

travisのCLIツールを入れる

$ gem install travis

それを使ってdeploy設定をする

$ travis setup releases

このコマンドは対話式で、githubのユーザ名、パスワード、2FAトークンを聞かれる。
途中で、API Tokenを暗号化しますか?と聞かれるのでこれをyesにする。

ウィザートが終わると、 .travis.ymldeploy の項目が追記される。

それを下記のように修正する。

language: objective-c
osx_image: xcode8.2
rvm:
- 2.2  
deploy:
  provider: releases
  api_key:
    secure: <生成された文字列のままにする>
  file: Release/numsw-playground.zip
  on:
    tags: true
    repo: sonsongithub/numsw

Playgroundbookの検証をiOS SDKで行うように変更する

今はMacOSX SDKでやってるが、
そのせいで NumswRenderer がUIKit禁止縛りになっている

実行テストはできなくなっちゃうけど、
現状はデメリットの方が大きそうなので、
iOS SDKでビルドだけするように切り替える

Clean up resources for Playground Book.

Like the below list.

/PlaygroundBook/ipad-template/Contents/Chapters/
/PlaygroundBook/ipad-template/Contents/Chapters/..........
/PlaygroundBook/ipad-template/Contents/Manifest.plist/
/PlaygroundBook/ipad-template/Contents/Resources/
/PlaygroundBook/xcode-template/Contents.swift
/PlaygroundBook/xcode-template/contents.xcplayground
/PlaygroundBook/xcode-template/playground.xcworkspace
/Tools/build.rb

Batch drawing

I want to gather some rendering scripts into only one plot view.

For example,

holdon()
plot(x,y)
plot(x1, y1)
sacatter(x1, y1)
holdoff()

サンプルコードを統一する.

面倒臭くなってきたから日本語でw
Playground Bookに書くサンプルコードと,sandbox中のサンプルコードが分散している.
playground bookを生成するときにsandbox中のサンプルコードから自動的に,Playground Bookのサンプルコードを生成するようにする.

Implement NDArray

I'm planning to implement NDArray which is similar to numpy's ndarray.
It'll replace Matrix finally.
I think the features below are needed, useful, or easy to implement.

Is there anything else? Or have any ideas?

cannot capture "elements" before it is declared

コンパイルできません。
Mac上のXcodeだとコンパイルできるけど、iPad上のSwift Playgrounds内臓コンパイラだとエラー。

NDArrayTransformation.swift
line 36

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.