Chatbots powered by artificial intelligence, such as ChatGPT, are ready to speed up monotonous coding tasks and teach you new skills. We highlight, with worked examples, some advantages and limitations of using generative artificial intelligence for scientific coding and argue that if you are willing to debug, you can get a head start on more challenging tasks.
References
van Dis, E. A. M., Bollen, J., Zuidema, W., van Rooij, R. & Bockting, C. L. Nature 614, 224–226 (2023).
Liebrenz, M., Schleifer, R., Buadze, A., Bhugra, D. & Smith, A. Lancet Digit. Health 5, e105–e106 (2023).
Thorp, H. H. Science 379, 313 (2023).
Mitchell, M. Artificial Intelligence: A Guide for Thinking Humans (Farrar, Straus and Giroux, 2019).
King, M. Revolutionary method of book speed reading with ChatGPT. Medium, https://medium.com/@neonforge/revolutionary-method-of-book-speed-reading-with-chatgpt-108c35bf0aab (8 January 2023).
Hilborn, R. & Mangel, M. The Ecological Detective (Princeton Univ. Press, 2013).
Zobel, J. Writing for Computer Science. (Taylor & Francis, 2004).
Hijmans, R. J. terra: spatial data analysis v.1.7-23, https://CRAN.R-project.org/package=terra (2023).
Pebesma, E. R J. 10, 439–446 (2018).
Wickham, H., Danenberg, P., Csárdi, G. & Eugster, M. roxygen2: in-line documentation for R v. 7.2.3, https://CRAN.R-project.org/package=roxygen2 (2022).
Hahn, S. GPT-4 is coming next week – and it will be multimodal, says Microsoft Germany. heise online, https://www.heise.de/news/GPT-4-is-coming-next-week-and-it-will-be-multimodal-says-Microsoft-Germany-7540972.html (9 March 2023).
Acknowledgements
C.M. and J.M.S.-D. were supported by NASA award 80NSSC 22K0883. C.M. and B.J.E. were supported by NSF awards 2225078 and 2225076. A.M.W. was supported by NASA awards 80NSSC21K1183 and 80NSSC21K0086. J.M.S.-D. acknowledges funding from ANR-21-CE32-0003
Author information
Authors and Affiliations
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Supplementary information
Supplementary Information
Supplementary ChatGPT Examples 1-14
Rights and permissions
About this article
Cite this article
Merow, C., Serra-Diaz, J.M., Enquist, B.J. et al. AI chatbots can boost scientific coding. Nat Ecol Evol 7, 960–962 (2023). https://doi.org/10.1038/s41559-023-02063-3
Published:
Issue Date:
DOI: https://doi.org/10.1038/s41559-023-02063-3
- Springer Nature Limited
This article is cited by
-
How to write effective prompts for large language models
Nature Human Behaviour (2024)
-
Scientific figures interpreted by ChatGPT: strengths in plot recognition and limits in color perception
npj Precision Oncology (2024)
-
Techniques for supercharging academic writing with generative AI
Nature Biomedical Engineering (2024)
-
Testing the reliability of an AI-based large language model to extract ecological information from the scientific literature
npj Biodiversity (2024)
-
Towards human-AI collaborative urban science research enabled by pre-trained large language models
Urban Informatics (2024)