# \[ANN\] PeriodicTable.jl : A small julia library for getting periodic table elements and their data

**URL:** <https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720>\
**Category:** Community\
**Tags:** package, announcement\
**Created:** [March 14, 2018, 7:09pm UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720 "2018-03-14T19:09:30Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulkp220](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rahulkp220](https://discourse.julialang.org/u/rahulkp220)\
**Post date:** [March 14, 2018, 7:09pm UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/1 "2018-03-14T19:09:30Z")

</div>

Hello Julians,  
Today I started working on another package in Julia by the name of [PeriodicTable.jl](https://github.com/rahulkp220/PeriodicTable.jl). It currently has a very simple layout and one method basically to fetch data for an element in a periodic table using its _ **atomic number/symbol/name** _.

I am currently looking for people who can improve it and code together. As always any suggestions/criticisms/feedbacks/PRs and Github ⭐ are welcome! 🙂

 ![45%20PM](https://global.discourse-cdn.com/julialang/original/3X/1/f/1f3cfb44248a730d42049e3215be6c69bc26a138.png)

---

<div class="post-metadata">

**Author:** ![jwikmark](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jwikmark/32/3526_2.png) [@jwikmark](https://discourse.julialang.org/u/jwikmark)\
**Post date:** [March 14, 2018, 11:08pm UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/2 "2018-03-14T23:08:03Z")

</div>

I was making a related thing the other day and this type of package would have been useful to me. Would you be up for adding isotope data to this? I would be interested in contributing.

---

<div class="post-metadata">

**Author:** ![rahulkp220](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rahulkp220](https://discourse.julialang.org/u/rahulkp220)\
**Post date:** [March 15, 2018, 3:18am UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/3 "2018-03-15T03:18:51Z")

</div>

@jwikmark Yes, definitely , I am open to contributions.

---

<div class="post-metadata">

**Author:** ![jwikmark](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jwikmark/32/3526_2.png) [@jwikmark](https://discourse.julialang.org/u/jwikmark)\
**Post date:** [March 15, 2018, 10:01am UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/4 "2018-03-15T10:01:09Z")

</div>

This makes for a pretty cute app combined with InteractNext:

 ![out](https://global.discourse-cdn.com/julialang/original/3X/3/2/32ebe320d200c04fa48571893ba6f12bb0ce4d6a.gif)

> <https://github.com/jlgw/julia-scripts/blob/master/periodictabletoy.jl>

---

<div class="post-metadata">

**Author:** ![rahulkp220](https://avatars.discourse-cdn.com/v4/letter/r/3da27b/32.png) [@rahulkp220](https://discourse.julialang.org/u/rahulkp220)\
**Post date:** [March 15, 2018, 5:48pm UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/6 "2018-03-15T17:48:42Z")

</div>

@jwikmark The code got a major update (see [here](https://github.com/rahulkp220/PeriodicTable.jl) )and hence you may have to update your code now.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [March 15, 2018, 6:06pm UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/7 "2018-03-15T18:06:28Z")

</div>

Note that the right way to add this sort of animation is probably to define a `show(io::IO, ::MIME"text/html", el::Element)` method.

Given that, you could just do

```julia
@manipulate for n in 1:length(elements)
    elements[n]
end

```

and it will display nicely in IJulia.

---

<div class="post-metadata">

**Author:** ![simonbyrne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simonbyrne/32/19_2.png) [@simonbyrne](https://discourse.julialang.org/u/simonbyrne)\
**Post date:** [March 15, 2018, 6:16pm UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/8 "2018-03-15T18:16:51Z")

</div>

What about generating the spectrums using the [`colormatch` function from Colors.jl](https://github.com/JuliaGraphics/Colors.jl/blob/3d53e1018279eacf7c7a318b1cb3d87401bac4e5/README.md#cie-standard-observer)? It seems that the data is available from here: [Spectra of Gas Discharges](http://laserstars.org/data/elements/)

---

<div class="post-metadata">

**Author:** ![ScottPJones](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/scottpjones/32/146_2.png) [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)\
**Post date:** [March 15, 2018, 7:22pm UTC](https://discourse.julialang.org/t/ann-periodictable-jl-a-small-julia-library-for-getting-periodic-table-elements-and-their-data/9720/9 "2018-03-15T19:22:29Z")

</div>

I’ll have to show this to my (very scientifically oriented) son Alex (he’s 11 years old).  
Seems like a useful educational tool to me!

Edit: Just showed it to him, he really liked it!
