Code Monkey home page Code Monkey logo

Comments (4)

mkcor avatar mkcor commented on September 10, 2024 1

@GParolini could help out with this issue (see scikit-image/scikit-image#7330 (comment)). Many thanks to her!

from image-processing.

quist00 avatar quist00 commented on September 10, 2024

I would personally favor this change for several reasons, but I would like it to be something the curriculum advisory committee encourage for the carpentries as a whole rather than just this lesson. As @JeremyPike surmised, that line was originally added as a hack to eliminate the need to scroll to the top of the jupyter file every time you displayed a new image. Perhaps there is another way to accomplish that without using an oo style line, and retain the r-style if that is what the CAC ultimately favored.

I think during the move to beta we assumed this was like a 201 level carpentries workshop building on what they learned previously, so retaining the ggplot style they likely learned from more introductory carpentries workshops would be a good thing as it eliminates some cognitive load as they grapple with many other new concepts. New learners might also feel like they are just being asked to unlearn what they just learned.

I assume the introductory lessons adopt the ggplot approach because it is seen as slightly less complicated, especially for a subset that used ggplot with R, but I think front loading them with a little bit more will be worth it in the long run because I always encourage workshop attendees to use https://matplotlib.org/stable/gallery/ as a means to jumpstart their own plotting, and it relies almost exclusively on oo method when it is not using SNS or some other wrapper library.

from image-processing.

uschille avatar uschille commented on September 10, 2024

I believe that we should use the "object-oriented (OO) style" throughout the lesson, since we have created figure and axis objects. At the moment, we are mixing up the OO-style with the pyplot-style. For instance, 328d544 adds figure and axis objects, but we still have all the pyplot-style legacy. I would change, e.g.,

I personally would also favor @mkcor's suggestion. I think the current mix-up is due to the history of the lesson. Originally, the lesson used pyplot-style but when we transitioned to using Jupyter notebooks with %matplotlib widget it became necessary to create fig and ax objects for each cell. On that note, when I recently taught the lesson, I realized that %matplotlib widget does not suit certain platforms including Google Colab and Spyder. I intend to investigate alternatives when I find time.

from image-processing.

tobyhodges avatar tobyhodges commented on September 10, 2024

It seems we have (lazy) consensus and I would welcome a PR to address this across all episodes, whether from @mkcor or anyone else reading this who is willing to take the time.

@uschille please let us know what you discover regarding %matplotlib widget. Perhaps a good discussion point at a Maintainer call soon?

from image-processing.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.