Comments (11)
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.
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.
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.
It's tempting!
from papermill.
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.
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.
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.
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.
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.
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.
Referencing an old issue for something similar for top level metadata: nteract/nteract#1503
from papermill.
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)
- --report-mode bug
- SparkMagic pyspark kernel magic(%%sql) hangs when running with Papermill. HOT 1
- Metadata of parameters cell not copied (`{'slideshow': {'slide_type': 'skip'}`)
- Enhance the progress bar to display customizable message HOT 1
- AttributeError: kernelspec HOT 3
- Latest release not installable from sdist HOT 1
- Do an audit of requirements files, pyproject.toml, ci config, tox HOT 5
- Stale repo action HOT 3
- Kernel not found with venvs (jupyter_client.kernelspec.NoSuchKernel) HOT 2
- Does tqdm print properly with --log-output? HOT 1
- nbformat 5.1.2 and 5.1.3 cause AttributeError: 'NoneType' object has no attribute 'cells'
- Parameter parsing fails for strings containing `=` character HOT 2
- Pandas style has no effect HOT 3
- RuntimeError: Kernel didn't respond in 60 seconds HOT 2
- Make the parameters of progress_bar specifiable by a dictionary
- pip install --no-binary gives "No such file or directory" error
- Cell that starts with %%time does not report errors HOT 2
- PapermillNotebookClient deprecation warning: unrecognized argument input_path HOT 1
- Tuple in the config dictionary changed to string when run a python notebook with papermill HOT 1
- New Release HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from papermill.