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

BufferStock REMARK notebook hangs on first code cell #18

Closed
sbenthall opened this issue Oct 28, 2019 · 11 comments
Closed

BufferStock REMARK notebook hangs on first code cell #18

sbenthall opened this issue Oct 28, 2019 · 11 comments

Comments

@sbenthall
Copy link
Contributor

The first executable code cell in the BufferStock REMARK notebook (linked here from the git repo submodule):
https://github.com/llorracc/BufferStockTheory/blob/5ccb22b72cb9fd46245b8954459ce5f44ab3c7ea/Code/Python/BufferStockTheory.ipynb

hangs upon execution of the first code cell.

Command line output from Jupyter lab indicates a 404 connection to the local JupyterLab endpoint.

[I 11:13:19.120 LabApp] Saving file at /BufferStockTheory.ipynb
[W 11:13:19.120 LabApp] Saving untrusted notebook BufferStockTheory.ipynb
[W 11:13:22.667 LabApp] 404 GET /metrics?1572275602658 (127.0.0.1) 3.85ms referer=http://localhost:8888/lab
[W 11:13:27.679 LabApp] 404 GET /metrics?1572275607671 (127.0.0.1) 3.81ms referer=http://localhost:8888/lab
[W 11:13:32.689 LabApp] 404 GET /metrics?1572275612681 (127.0.0.1) 3.58ms referer=http://localhost:8888/lab
[W 11:13:37.700 LabApp] 404 GET /metrics?1572275617692 (127.0.0.1) 3.82ms referer=http://localhost:8888/lab
[W 11:13:42.711 LabApp] 404 GET /metrics?1572275622702 (127.0.0.1) 3.84ms referer=http://localhost:8888/lab
@project-bot project-bot bot added this to Needs Triage in Issues & PRs Oct 28, 2019
@llorracc
Copy link
Collaborator

llorracc commented Oct 28, 2019 via email

@MridulS
Copy link
Member

MridulS commented Oct 28, 2019 via email

@sbenthall
Copy link
Contributor Author

Confirmed: it works with the regular jupyter notebook

@MridulS
Copy link
Member

MridulS commented Oct 31, 2019

not a REMARK issue

@MridulS MridulS closed this as completed Oct 31, 2019
Issues & PRs automation moved this from Needs Triage to Done Oct 31, 2019
@llorracc llorracc reopened this Oct 31, 2019
Issues & PRs automation moved this from Done to In progress Oct 31, 2019
@llorracc
Copy link
Collaborator

llorracc commented Oct 31, 2019

Could one of you add a test in the first code line of the source document that determines whether it's being run as a Jupyter notebook or in JupyterLab?

Pseudocode:

if [running environment is JupyterLab]:
      print a fatal error message like 'As of 20191031, this notebook does not work with JupyterLab because of a JupyterLab problem, jupyterlab/jupyterlab#6884'
      halt execution

@MridulS
Copy link
Member

MridulS commented Oct 31, 2019 via email

@llorracc
Copy link
Collaborator

llorracc commented Oct 31, 2019 via email

@sbenthall
Copy link
Contributor Author

Confirmed I was able to fix this on my end.
Sorry for the confusion

@llorracc
Copy link
Collaborator

llorracc commented Nov 1, 2019 via email

@sbenthall
Copy link
Contributor Author

Add a line testing for ipython, per my prior msg.

Forgive me, but are you referring to issue #19 here?

This issue #18 is about JupyterLab, but it was an issue with my JupyterLab environment.

@llorracc
Copy link
Collaborator

llorracc commented Nov 3, 2019

Yes, this was about #19

@llorracc llorracc closed this as completed Nov 3, 2019
Issues & PRs automation moved this from In progress to Done Nov 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Issues & PRs
  
Done
Development

No branches or pull requests

3 participants