You’ve just created an amazing plot in Python with Matplotlib but would like to change figure size. I will show you three different approaches to changing figure size in Matplotlib. All code samples from article can be used in Python script or Jupyter Notebook (Jupyter Lab).
MLJAR's Blog
-
3 ways to change figure size in Matplotlib
November 02, 2022 by Aleksandra Płońska, Piotr Płoński Matplotlib
-
3 ways to share password protected Jupyter Notebook
October 28, 2022 by Aleksandra Płońska, Piotr Płoński Jupyter
You created an analysis in Jupyter Notebook and would like to share it online with selected persons. In this article, I will show you how to add password protection to the selected Jupyter Notebook and share it only with authorized people.
-
2 ways to convert Jupyter Notebook Presentation to PDF slides
October 27, 2022 by Aleksandra Płońska, Piotr Płoński Jupyter Presentation
Jupyter Notebook can be used to create data-rich presentations. They can be presented as interactive slideshow thanks to Reveal.js library. What if you would like to export it to PDF slides? I will show you two approaches that you can use to export Jupyter Notebook presentation into PDF slides.
-
4 ways to run Jupyter Notebook in command line
October 26, 2022 by Aleksandra Płońska, Piotr Płoński Jupyter Commandline Nbconvert
Jupyter Notebook is a perfect tool for data analysis and quick prototyping. You can easily mix Python (or R, Julia, Scala …) code with Markdown. What to do if you would like to run your
.ipynb
file in the command line? There are several approaches to execute notebook in the terminal. There is no one-size fits all, it all depends on your needs. Do you need to execute notebook and share the output as PDF or HTML file? Would you like to upload executed notebook to the cloud storage? Would you like to add parameters to your notebook? I hope you will find solution for yourself in our list. -
Convert Jupyter Notebook to spaCy NLP web application
October 25, 2022 by Uppu Rajesh Kumar, Piotr Płoński Jupyter Web app
Jupyter notebooks are a convenient way of prototyping our Machine Learning models. They are also very easy to use and provide a convenient way of teaching data science concepts while simultaneously showing the working of the code using the code cells. If we want to test several examples for some functionality, then we need to repeatedly change the code and run the cells to get the output. Also, anyone who doesn’t have a good programming background may face difficulty handling the code.
-
3 ways to hide code in Jupyter Notebook Presentation
October 17, 2022 by Aleksandra Płońska, Piotr Płoński Jupyter Presentation
Creating a Jupyter Notebook presentation is a great way to share your data-rich results. All your plots and results are already in slides. There is no need to copy results between Jupyter Notebook and software for presentation manually. The slideshow is a preferred way to share results with non-technical stakeholders. The code in the slides might scare them. How to hide code in a presentation generated from Jupyter Notebook? We will show you 3 approaches to hiding code in the slides.
-
Create Parameterized Presentation in Jupyter Notebook
October 05, 2022 by Aleksandra Płońska, Piotr Płoński Jupyter Presentation
Presentation created with Jupyter Notebook is a great way to show your results computed based on data. Wouldn’t it be amazing if there were a way to parameterize presentation with interactive widgets? There is an open-source framework called Mercury that can serve Jupyter Notebook presentations with interactive widgets. Users can recompute charts and values in slides during watching the presentation.
-
Create Presentation from Jupyter Notebook
October 04, 2022 by Aleksandra Płońska, Piotr Płoński Jupyter Presentation
Presentation is a great way to share your results and findings with a nontechnical audience. The data-rich presentation with charts, tables, and code may be tedious to create. You need to copy-paste each image into traditional presentation software manually. What if you need to update all charts because your supervisor or manager asked for them? Ugh… again, a lot of work … Don’t worry, there is a solution for your pain! You can create a presentation directly from Jupyter Notebook. The presentation slides can be constructed from single, multi-code or Markdown cells. The cell’s code can be hidden in the presentation (to not scare nontechnical viewers). The final slides can be shared as a website or converted to a PDF file. Some frameworks allow you to parameterize the presentation with widgets making it interactive.
-
Schedule Jupyter Notebook to run daily
September 26, 2022 by Piotr Płoński Jupyter
You have just created an excellent report in Jupyter Notebook and would like to run it daily. Are you looking for a scheduler solution that fulfills your requirements? It would be great to send executed notebook as a PDF by email. You would like to serve a website with an updated HTML view of the notebook and restricted access to only selected users. It would be fantastic to have an option to parametrize the notebook and execute it with customized values. There are several schedulers for Jupyter Notebook available. However, not all fulfill those requirements. This post will show you how to schedule your notebook to run daily with the open-source Mercury framework.
-
5 ways to schedule Jupyter Notebook
September 23, 2022 by Piotr Płoński Jupyter
Jupyter Notebook is an excellent tool for creating computational documents. The mix of code and markdown makes it perfect for creating data-rich reports, dashboards, and slides. There is often a requirement to update the notebook’s results at a selected time interval and publish it to the rest of the team. For example, you must create a daily report from Jupyter Notebook and send it as a PDF file to team members by email.