Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account


How python merges multiple notebook files with nbmerge

2024-03-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >


Shulou( Report--

This article mainly explains "python how to use nbmerge to merge multiple notebook files", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "python how to merge multiple notebook files with nbmerge" bar!

I usually like to use notebook, the courseware of the course is generally divided into multiple notebook, but recently, July 13-18, 2019 (Hangzhou) Stata & Python empirical metrology and reptile analysis summer workshop is approaching, so the courseware needs to be printed in advance.

Printing courseware in order to prevent errors, each instructor tries to provide only one pdf file, but my courseware is actually a dozen notebook files, which need to be merged into one notebook to output into a pdf file in the browser, which is convenient to print, but how to merge it?

Fortunately, there is google, which was found after search.

Github library installation! pip3 install nbmerge usage

Open the command line and change to the folder where the notebook you want to operate is located.

Nbmerge file_1.ipynb file_2.ipynb file_3.ipynb > merged.ipynb

For example, in this tutorial, we created two new ipynb files, 01.ipynb and 02.ipynb.

Successful merger of 01.ipynb and 02.ipynb files thank you for reading, these are the contents of "python how to merge multiple notebook files with nbmerge". After the study of this article, I believe you have a deeper understanding of how python uses nbmerge to merge multiple notebook files, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology


© 2024 SLNews company. All rights reserved.