Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Have an error when web page access, but not in jupyter notebook #129

Open
JengkolRebus opened this issue May 17, 2020 · 0 comments
Open

Comments

@JengkolRebus
Copy link

I am not an expert programmer.

I get an error like this when accessing the page that was created.
when run on jupyter notebook there is no problem. this happens when the web page is accessed.
it should show the DatePicker widget
anyone know why?

---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-6-01df704f6fa5> in <module>
----> 1 hari_ini = datetime.now().date()
2 days_in_month = calendar.monthrange(hari_ini.year, hari_ini.month)[1]
3 besok = hari_ini + timedelta(days_in_month)
4
5 print('Latitude: ', lat)

NameError: name 'datetime' is not defined

this is the program:
programs/konjungsibulan.ipynb

this is all the files in repository, if this helps:
https://github.com/JengkolRebus/nbinteract-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant