{"id":29575468,"url":"https://github.com/marcontk/perl-plotly-examples","last_synced_at":"2026-05-19T06:02:09.568Z","repository":{"id":285671689,"uuid":"958945192","full_name":"marcontk/Perl-Plotly-examples","owner":"marcontk","description":"Interactive Plotly examples in Perl using Jupyter and the iPerl kernel. Includes basic plots, map visualizations, and 3D plots — all rendered from Perl. Edited in VSCode on macOS Sonoma.","archived":false,"fork":false,"pushed_at":"2025-10-29T01:34:55.000Z","size":626,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T03:26:23.192Z","etag":null,"topics":["iperl","pdl","perl","plotly"],"latest_commit_sha":null,"homepage":"https://nbviewer.org/github/marcontk/Perl-Plotly-examples/blob/main/perl_plot_examples.ipynb","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/marcontk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-04-02T02:45:38.000Z","updated_at":"2025-10-29T01:34:58.000Z","dependencies_parsed_at":"2025-10-29T03:14:46.961Z","dependency_job_id":"7874ed44-6fdd-498f-8e37-a0f9585de822","html_url":"https://github.com/marcontk/Perl-Plotly-examples","commit_stats":null,"previous_names":["marcontk/perl-plotly-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcontk/Perl-Plotly-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcontk%2FPerl-Plotly-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcontk%2FPerl-Plotly-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcontk%2FPerl-Plotly-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcontk%2FPerl-Plotly-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcontk","download_url":"https://codeload.github.com/marcontk/Perl-Plotly-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcontk%2FPerl-Plotly-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33203999,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-18T09:27:30.708Z","status":"online","status_checked_at":"2026-05-19T02:00:06.763Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["iperl","pdl","perl","plotly"],"created_at":"2025-07-19T11:00:55.918Z","updated_at":"2026-05-19T06:02:09.562Z","avatar_url":"https://github.com/marcontk.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Plotly Examples in Perl using iPerl (Jupyter)\n\nThis repository showcases interactive data visualization using Perl in Jupyter Notebooks through the iPerl kernel. It includes three examples that demonstrate how to generate web-based interactive plots with Plotly from Perl.\n\nThe notebook `perl_plot_examples.ipynb` was edited in **Visual Studio Code (VSCode)** using the [iPerl Jupyter kernel plugin](https://github.com/EntropyOrg/p5-Devel-IPerl). The environment used was macOS Sonoma 14.7.4.\n\n## 📦 Requirements\n\n- Perl 5.x\n- [iPerl](https://metacpan.org/pod/IPerl) ([GitHub repo](https://github.com/EntropyOrg/p5-Devel-IPerl))\n- JupyterLab or VSCode with Jupyter extension\n- CPAN modules:\n  - `Chart::Plotly`\n  - `PDL`\n  - `Dash` (optional, for advanced dashboards)\n\n---\n\n## 📈 Example 1: Simple Plot with Plotly\n\nA basic interactive line plot using `Chart::Plotly::Plot`.\n\n**Perl snippet:**\n```perl\nuse Chart::Plotly qw(show_plot);\nuse Chart::Plotly::Plot;\nuse Chart::Plotly::Trace::Scatter;\n\nmy $trace = Chart::Plotly::Trace::Scatter-\u003enew(\n    x =\u003e [0 .. 10],\n    y =\u003e [ map { $_**2 } 0 .. 10 ],\n    mode =\u003e 'lines+markers'\n);\n\nmy $plot = Chart::Plotly::Plot-\u003enew(traces =\u003e [$trace]);\nshow_plot($plot);\n```\n\n---\n\n## 🗺️ Example 2: Interactive Map with Scattermapbox\n\nAn interactive geographic plot using `Scattermapbox`. It shows points based on latitude/longitude.\n\n**Perl snippet:**\n```perl\nuse Chart::Plotly::Plot;\nuse Chart::Plotly::Trace::Scattermapbox;\n\nmy $trace = Chart::Plotly::Trace::Scattermapbox-\u003enew(\n    lat  =\u003e [\"-33.45\"],\n    lon  =\u003e [\"-70.66\"],\n    mode =\u003e 'markers',\n    marker =\u003e { size =\u003e 14 },\n    text =\u003e [\"Santiago\"]\n);\n\nmy $plot = Chart::Plotly::Plot-\u003enew(\n    traces =\u003e [$trace],\n    layout =\u003e {\n        mapbox =\u003e { style =\u003e \"open-street-map\", center =\u003e { lat =\u003e -33.45, lon =\u003e -70.66 }, zoom =\u003e 5 },\n        margin =\u003e { t =\u003e 0, b =\u003e 0, l =\u003e 0, r =\u003e 0 }\n    }\n);\n\nChart::Plotly::show_plot($plot);\n```\n\n---\n\n## 🌐 Example 3: 3D Interactive Plot (Scatter3d)\n\nGenerates a 3D scatter plot with Plotly.\n\n**Perl snippet:**\n```perl\nuse Chart::Plotly::Plot;\nuse Chart::Plotly::Trace::Scatter3d;\n\nmy $trace = Chart::Plotly::Trace::Scatter3d-\u003enew(\n    x =\u003e [1 .. 10],\n    y =\u003e [ map { $_**0.5 } 1 .. 10 ],\n    z =\u003e [ map { $_**1.5 } 1 .. 10 ],\n    mode =\u003e 'markers',\n    marker =\u003e { size =\u003e 4, color =\u003e [1 .. 10], colorscale =\u003e 'Viridis' }\n);\n\nmy $plot = Chart::Plotly::Plot-\u003enew(traces =\u003e [$trace]);\nChart::Plotly::show_plot($plot);\n```\n\n---\n\n## 🖼️ Preview\n\nExample of Plotly output from Perl (interactive 3D plot):\n\n![screenshot](images/plotly_3d_example.png)\n\n---\n\n## 📂 Files\n\n- `perl_plot_examples.ipynb`: Jupyter notebook with all examples\n\n## 💡 ¿Cómo ejecutar este notebook?\n\nEste notebook está hecho en Perl usando el kernel IPerl.  \nPuedes ejecutarlo localmente con los siguientes pasos:\n\n1. Instala Perl y `cpanm` (si aún no lo tienes):\n   ```bash\n   curl -L https://cpanmin.us | perl - App::cpanminus\n\n2. Instala los módulos necesarios\n   cpanm Devel::IPerl Chart::Plotly\n\n3. Abre el notebook en Visual Studio Code\u003cbr\u003e\n\t•\tInstala la extensión Jupyter en VSCode.\u003cbr\u003e\n\t•\tAsegúrate de tener el kernel IPerl instalado.\u003cbr\u003e\n\t•\tAbre el archivo .ipynb y selecciona el kernel Perl.\n\nTambién puedes usar jupyter notebook desde terminal si prefieres Jupyter clásico.\n\n\n## 📄 License\n\nMIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcontk%2Fperl-plotly-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcontk%2Fperl-plotly-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcontk%2Fperl-plotly-examples/lists"}