You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like it if code be in standard .py files with option to import other, etc. coz can be more easy to operate and lighter, current files are often big
Proposed Solution
Proposal to solve is to do this in way in old style as:
** But the important is to have normal python cone without quotes..**
What about asign code to the cel?
Wel.. decorator can be for this above comment..
@jupyter_cell = 1
# This program prints Hello, world!
print('Hello, world!')
@cell = 1
# Python Program to find the area of triangle
a = 5
b = 6
c = 7
@cell = 2
# Uncomment below to take inputs from the user
# a = float(input('Enter first side: '))
# b = float(input('Enter second side: '))
# c = float(input('Enter third side: '))
@cell = 3 # note about 2 lines enter, it's mind next cell and not need decorator @cell
# calculate the semi-perimeter
s = (a + b + c) / 2
@cell = 4
# calculate the area
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)
or with comment as philosophy, that if no decorator as @cell or @jupyter_cell then code is still in this same cell
# @cell = 4
# calculate the area
area = (s*(s-a)*(s-b)*(s-c)) ** 0.5
print('The area of the triangle is %0.2f' %area)
Soo.. all is about to move config json to object and steering this data by class/objects.
In some configs user can call decaorator to operate around by object eg.
test_object = {"@cell" : "4"} #kill or reset, execute cyclical etc.
The decorator is not really required, eg. convention can be that 2 lines betwen rows mind that is opened next cell
Is some var are reserved for jupyter then decorator can be above as @jupyter or @ipynb to proxing var as free to solve conflicts.
Forward to community that evolution is coming ; )
The content you are editing has changed. Please copy your edits and refresh the page.
Since this issue is more about the Notebook format and not necessarily related to the Notebook user interface, maybe the discussion could be moved to a different place so it gets more visibility from other folks working with notebooks?
Problem
Proposed Solution
Additional context
** But the important is to have normal python cone without quotes..**
What about asign code to the cel?
Wel.. decorator can be for this above comment..
or with comment as philosophy, that if no decorator as @cell or @jupyter_cell then code is still in this same cell
Soo.. all is about to move config json to object and steering this data by class/objects.
In some configs user can call decaorator to operate around by object eg.
The decorator is not really required, eg. convention can be that 2 lines betwen rows mind that is opened next cell
Is some var are reserved for jupyter then decorator can be above as @jupyter or @ipynb to proxing var as free to solve conflicts.
Forward to community that evolution is coming ; )
Tasks
The text was updated successfully, but these errors were encountered: