Coder Social home page Coder Social logo

Comments (11)

ewmassey avatar ewmassey commented on May 23, 2024

I really like this and strongly prefer it to our current strategy. How do you set a name for a cell in Jupyter?

from papermill.

rgbkrk avatar rgbkrk commented on May 23, 2024

OMG, there's a name metadata field? Holy crap, I probably would have abused that in nteract to put in UUIDs. 😲 Then I'd be able to support commenting and other niceties really easily.

from papermill.

rgbkrk avatar rgbkrk commented on May 23, 2024

As @mpacer points out, there's no way to set this with the current Jupyter UI. We'd need to introduce something into the classic notebook (as well as nteract).

Adding it on to the contextual cell menu is one <li> and some state management away.

screen shot 2017-09-06 at 9 56 04 am

It's tempting!

from papermill.

rgbkrk avatar rgbkrk commented on May 23, 2024

I'm really interested in setting the name field using our current unique IDs and allowing users to override them with their own names (like parameters in this case).

from papermill.

rgbkrk avatar rgbkrk commented on May 23, 2024

For classic, we need to make an extension for this. Are there JS APIs for managing the uniqueness of cell names in jupyter/notebook @mpacer?

from papermill.

mpacer avatar mpacer commented on May 23, 2024

I don't think there is anything for maintaining uniqueness.

Note to fully support this requires modifying all of the cell creation machinery.

E.g., name metadata shouldn't be included in the duplicate of a cell once it's copied and pasted.

Name shouldn't persist on both cells after a split, perhaps it should be removed on both.

Merge should probably remove the name altogether.

Can you think of anything else?

from papermill.

mpacer avatar mpacer commented on May 23, 2024

Aside: @rgbkrk I'd love to see how you get these demo visualisations to work so quickly.

It might be nice to have a little tab off to the left part of the top of the cell bar that displays the name that can be double clicked to edit (like the name of the document).

If I knew how to build a prototype so quickly I'd just have done it, rather than describe it (which is why I ask).

from papermill.

rgbkrk avatar rgbkrk commented on May 23, 2024

I'd love to see how you get these demo visualisations to work so quickly.

Sometimes I'll cheat and just modify things on the DOM directly. In the case of this one, I hit command-shift-f in Atom (on nteract/nteract) to search across all files and typed in "Convert to Markdown" so that I could find where similar menu items were. I then copied the <li> React element from one of these other menu items and changed the text to match "Denote as Parameter Cell".

The reason I get it done quickly in nteract is mostly because of how our dev setup works and because I know the code base/tooling really well. I'd be happy to walk you through it!

from papermill.

rgbkrk avatar rgbkrk commented on May 23, 2024

It might be nice to have a little tab off to the left part of the top of the cell bar that displays the name that can be double clicked to edit (like the name of the document).

I can tell I'm not going to like that, let me give it a go though. 😄

from papermill.

rgbkrk avatar rgbkrk commented on May 23, 2024

Referencing an old issue for something similar for top level metadata: nteract/nteract#1503

from papermill.

MSeal avatar MSeal commented on May 23, 2024

Going to close this issue as it's been more established that tags are the way to go for now on this topic.

from papermill.

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.