{"id":13821831,"url":"https://github.com/richardanaya/mars","last_synced_at":"2025-03-16T08:32:09.153Z","repository":{"id":57636070,"uuid":"361627233","full_name":"richardanaya/mars","owner":"richardanaya","description":"A data science notebook for Rust","archived":false,"fork":false,"pushed_at":"2021-05-08T06:30:55.000Z","size":3336,"stargazers_count":43,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-16T00:11:16.826Z","etag":null,"topics":["datascience","rust"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/richardanaya.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-26T05:24:09.000Z","updated_at":"2025-03-07T20:59:43.000Z","dependencies_parsed_at":"2022-09-26T20:21:37.766Z","dependency_job_id":null,"html_url":"https://github.com/richardanaya/mars","commit_stats":null,"previous_names":["richardanaya/mahrs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardanaya%2Fmars","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardanaya%2Fmars/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardanaya%2Fmars/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richardanaya%2Fmars/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richardanaya","download_url":"https://codeload.github.com/richardanaya/mars/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846976,"owners_count":20357294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datascience","rust"],"created_at":"2024-08-04T08:01:29.971Z","updated_at":"2025-03-16T08:32:08.530Z","avatar_url":"https://github.com/richardanaya.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# ＭＡＲＳ\n\nA data science notebook for Rust.\n\n* a full Rust context based off [evxcr](https://github.com/google/evcxr) \n* Can dynamically loading dependencies using evxcr `:dep` command (e.g. `:dep random`)\n* single binary\n\n![](vid1.gif)\n![](vid2.gif)\n\n# Installation\n\nMars runs on a server on your machine. Running its binary will start the server and open up a browser to the tool.\n\n```\ncargo install mars\nmars\n```\n\n# Examples\n\nGetting a random number\n\n```rust\n:dep rand\nuse rand::Rng;\n\nlet mut rng = rand::thread_rng();\n\nlet n1: u8 = rng.gen();\nlet n2: u16 = rng.gen();\nprintln!(\"Random u8: {}\", n1);\nprintln!(\"Random u16: {}\", n2);\nprintln!(\"Random u32: {}\", rng.gen::\u003cu32\u003e());\nprintln!(\"Random i32: {}\", rng.gen::\u003ci32\u003e());\nprintln!(\"Random float: {}\", rng.gen::\u003cf64\u003e());\n```\n\nShowing some markdown\n\n```rust\n%%markdown\n# Title\n\nText \n* item 1\n* item 2\n```\n\nShowing some HTML.  Anything that evaluates to a json string in this format will render HTML instead.\n\n```rust\nr#\"{\"html\":\"\u003cb\u003esome html\u003c/b\u003e\"}\"#\n```\n\nShowing some image.  Anything that evaluates to a json string in this format will render an image instead. Base64 images work too.\n\n```rust\nr#\"{\"image\":\"https://some.com/image.png\"}\"#\n```\n\n\n# License\n\nThis project is licensed under either of\n\n * Apache License, Version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or\n   http://www.apache.org/licenses/LICENSE-2.0)\n * MIT license ([LICENSE-MIT](LICENSE-MIT) or\n   http://opensource.org/licenses/MIT)\n\nat your option.\n\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in `mars` by you, as defined in the Apache-2.0 license, shall be\ndual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardanaya%2Fmars","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardanaya%2Fmars","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardanaya%2Fmars/lists"}