GithubHelp home page GithubHelp logo

heroku-jupyter's Introduction

heroku-jupyter

Currently none of the configurations work properly. I am not able to figure out a working environment.yml. Sad enough older configurations do not work, as deprecated packages have been removed from package repositories.

Instead of using anaconda, it might be more stable to create a docker container to run in heroku. See as an example heroku-debian-jupyter, but there is still no support for a heroku deploy button from heroku

Use this application to deploy Jupyter Notebook to heroku or CloudFoundry. If a postgres database is available, pgcontents is used as notebook storage.

Quick start

Jupyter will not start, if the environment variable JUPYTER_NOTEBOOK_PASSWORD was not set.

If you want to customize your app, easiest is to fork this repository.

Installation instructions

heroku - automatic deployment

Deploy

If you forked this repository, you can link it to your heroku app afterwards.

heroku - manual deployment

Push this repository to your app or fork this repository on github and link your repository to your heroku app.

Use the heroku-buildpack-conda:

$ heroku buildpacks:set https://github.com/pl31/heroku-buildpack-conda.git -a <your_app>

Jupyter notebook will not start until the environment variable JUPYTER_NOTEBOOK_PASSWORD is set. Use a good password:

$ heroku config:set JUPYTER_NOTEBOOK_PASSWORD=<your_passwd> -a <your_app>

If you are really sure, that you do not want a password protected notebook server, you can set JUPYTER_NOTEBOOK_PASSWORD_DISABLED to DangerZone!.

CloudFoundry

  • Clone this repository
  • Create a postgres database service with name jupyter-db
  • Deploy using cf push
  • Set JUPYTER_NOTEBOOK_PASSWORD using cf set-env. Do not forget to restart application.

Environment variables

  • JUPYTER_NOTEBOOK_PASSWORD: Set password for notebooks
  • JUPYTER_NOTEBOOK_PASSWORD_DISABLED: Set to DangerZone! to disable password protection
  • JUPYTER_NOTEBOOK_ARGS: Additional command line args passed to jupyter notebook; e.g. get a more verbose logging using --debug

Python version

If you want to use a special python version, you should set it in your environment.yml:

name: root
dependencies:
  - python=2.7
  - ...

Environments

Experimental feature - in work

  • Parametrize default environment using ENVIRONMENT_YML
  • Add additional kernel(s) to jupyter installation (Python2 and Python3 in parallel)
  • Allow changes and experimental features without damaging defult configuration
Deployment Features Description
Deploy Python3, IPython5 Default Environment
Deploy Python3 Latest, no version binding
Deploy Python3, IPython5 + Python2 Default Environment + Python2

heroku-jupyter's People

Contributors

airman416 avatar magichan-lab avatar mrchrisadams avatar pl31 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heroku-jupyter's Issues

Jupyter NB is not working with CloudFoundry

I'm not too familiar with CloudFoundry, but from what I understand, the change to Diego changed the way WebSockets work and possibly breaking this implementation of Jupyter. More relevant info in this IPython ticket: ipython/ipython#7178 (comment)

I'll submit a fix for it to get it working with the version of CloudFoundry (Pivotal Cloud Foundry 1.6.3-build.14) we're running. I'm not sure how it affects other versions, however.

Connection Issues

Whenever I upload a notebook, as soon as it starts running, it encounters connection issues:

jupyter_notebook_connection

I cannot reproduce the issue when running locally (using heroku local). On Heroku, this problem repeats and does not allow the execution of any code. Any hints as to what may be causing the issue?

ImportError: IPython version 6 is not supported.

Hello, when I pushed the "Deploy to Heroku" button and set a password, I got an Application Error after everything was done building. Here are the logs:

2017-04-25T00:26:02.260675+00:00 app[web.1]: Enabling: jupyter_nbextensions_configurator
2017-04-25T00:26:02.261040+00:00 app[web.1]: - Writing config: /app/.jupyter
2017-04-25T00:26:02.261373+00:00 app[web.1]:     - Validating...
2017-04-25T00:26:02.261549+00:00 app[web.1]:       jupyter_nbextensions_configurator  �[32mOK�[0m
2017-04-25T00:26:02.261689+00:00 app[web.1]: Enabling notebook nbextension nbextensions_configurator/config_menu/main...
2017-04-25T00:26:02.263585+00:00 app[web.1]: Enabling tree nbextension nbextensions_configurator/tree_tab/main...
2017-04-25T00:26:04.256027+00:00 app[web.1]: Traceback (most recent call last):
2017-04-25T00:26:04.256033+00:00 app[web.1]:   File "/app/.jupyter/jupyter_notebook_config.py", line 6, in <module>
2017-04-25T00:26:04.256034+00:00 app[web.1]:     import pgcontents
2017-04-25T00:26:04.256035+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/__init__.py", line 14, in <module>
2017-04-25T00:26:04.256035+00:00 app[web.1]:     from .checkpoints import PostgresCheckpoints
2017-04-25T00:26:04.256038+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/checkpoints.py", line 6, in <module>
2017-04-25T00:26:04.256039+00:00 app[web.1]:     from .api_utils import (
2017-04-25T00:26:04.256040+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/api_utils.py", line 16, in <module>
2017-04-25T00:26:04.256040+00:00 app[web.1]:     from .utils.ipycompat import reads, writes
2017-04-25T00:26:04.256041+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/utils/ipycompat.py", line 9, in <module>
2017-04-25T00:26:04.256042+00:00 app[web.1]:     raise ImportError("IPython version %d is not supported." % IPY_MAJOR)
2017-04-25T00:26:04.256043+00:00 app[web.1]: ImportError: IPython version 6 is not supported.
2017-04-25T00:26:04.457704+00:00 heroku[web.1]: State changed from starting to crashed
2017-04-25T00:26:04.447572+00:00 heroku[web.1]: Process exited with status 255

It seems that the cause is ImportError: IPython version 6 is not supported. How can I fix this?

Adding JavaScript support

How would I extend your app to include javascript (ijavascript) support? I would like the notebooks to include both python and javascript language support.

Thanks in advance

Saving file problems

The issue is used to collect infos about problems with saving files to postgres. This includes working and non-working configurations.

Notebook List Empty

Hello. I am interested in using this for a project I work for.

I forked the repository and entered some notebooks in the notebooks folder. Unfortunately, when I hit the deploy button, they don't show up. Instead I get a message reading 'Notebook List Empty' in the Jupyter home page.

Am I misunderstanding what this is?

Issues while deploying on heroku

Hi, I was using the click to deploy button below and it gave this error

-----> Installing Dependencies using /tmp/build_56938d30a27dd84cca915e0c8f940181/environments/default.yml
Warning: you have pip-installed dependencies in your environment file, but you do not list pip itself as one of your conda dependencies.  Conda may not use the correct pip to install your packages, and they may end up in the wrong place.  Please add an explicit pip dependency.  I'm adding one for you, but still nagging you.
Collecting package metadata (repodata.json): ...working... done
Solving environment: ...working... failed
ResolvePackageNotFound: 
  - notebook=4
 !     Push rejected, failed to compile Python app.
 !     Push failed

Redirect to https on Heroku?

Is it possible to automatically redirect to the same URL but with https without modifying any of the supporting packages?

Is it supported?

Hello!

Is this repo being supported to the point I can put in on my prod server?

Cheers,
Ian

Saving files (directory not in tree)

I'm saving a file on jupyter (deployed on heroku).

I cannot see the saved file in the local working tree.

However, the program is able to read the file.

This is odd. I'd like to be able to see the files I save and download them locally.

Any help is appreciated.

Failed to deploy to Cloud Foundry

After run "cf push" (cf version 6.29.1+d5129d6.2017-08-17), I got errors as follows:
...
2019-04-05T10:47:16.24-0400 [CELL/0] OUT Starting health monitoring of container
2019-04-05T10:47:16.46-0400 [APP/PROC/WEB/0] ERR /usr/bin/env: bash
2019-04-05T10:47:16.46-0400 [APP/PROC/WEB/0] ERR : No such file or directory
2019-04-05T10:47:16.47-0400 [APP/PROC/WEB/0] OUT Exit status 127
2019-04-05T10:47:16.51-0400 [CELL/0] OUT Stopping instance dd7d3e6e-aae9-47bb-4b52-1e9f
2019-04-05T10:47:16.51-0400 [CELL/0] OUT Destroying container
2019-04-05T10:47:16.52-0400 [API/1] OUT Process has crashed with type: "web"
2019-04-05T10:47:16.54-0400 [API/1] OUT App instance exited with guid 9ec19681-f973-4374-9a2b-184f117667f9 payload: {"instance"=>"dd7d3e6e-aae9-47bb-4b52-1e9f", "index"=>0, "reason"=>"CRASHED", "exit_description"=>"APP/PROC/WEB: Exited with status 127", "crash_count"=>1, "crash_timestamp"=>1554475636486249555, "version"=>"d01f1824-09be-4e57-b2a4-4821ca1e6e84"}

Easy Deploy to heroku not working

Hi,

I've been trying to deploy to heroku using the heroku button.
Unfortunately, Heroku seems to get stuck configuring the environment.

psycopg2.ProgrammingError: relation "pgcontents.users" does not exist

Installed on Heroku. Apparently an error when accessing DB. Please see the full log

2017-05-09T06:31:28.563738+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Making directory: /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files
2017-05-09T06:31:28.563962+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_41_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_41_0.png
2017-05-09T06:31:28.564434+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_51_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_51_0.png
2017-05-09T06:31:28.564962+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_49_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_49_0.png
2017-05-09T06:31:28.565504+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_42_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_42_0.png
2017-05-09T06:31:28.566001+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_27_2.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_27_2.png
2017-05-09T06:31:28.566509+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_46_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_46_0.png
2017-05-09T06:31:28.566998+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_45_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_45_0.png
2017-05-09T06:31:28.567507+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_26_2.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_26_2.png
2017-05-09T06:31:28.568034+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_50_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_50_0.png
2017-05-09T06:31:28.568565+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_43_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_43_0.png
2017-05-09T06:31:28.569079+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_44_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_44_0.png
2017-05-09T06:31:28.569572+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_47_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_47_0.png
2017-05-09T06:31:28.570104+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_23_2.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_23_2.png
2017-05-09T06:31:28.570621+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_52_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_52_0.png
2017-05-09T06:31:28.571170+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_48_0.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_48_0.png
2017-05-09T06:31:28.571719+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Copying: /app/.conda/lib/python3.6/site-packages/latex_envs/static/doc/latex_env_doc_files/latex_env_doc_24_2.png -> /app/.local/share/jupyter/nbextensions/latex_envs/doc/latex_env_doc_files/latex_env_doc_24_2.png
2017-05-09T06:31:28.572264+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] - Validating: OK
2017-05-09T06:31:28.572968+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Installing jupyter_contrib_nbextensions items to config in /app/.jupyter
2017-05-09T06:31:28.577247+00:00 app[web.1]: Enabling: jupyter_nbextensions_configurator
2017-05-09T06:31:28.577389+00:00 app[web.1]: - Writing config: /app/.jupyter
2017-05-09T06:31:28.577997+00:00 app[web.1]:     - Validating...
2017-05-09T06:31:28.578211+00:00 app[web.1]:       jupyter_nbextensions_configurator  OK
2017-05-09T06:31:28.578358+00:00 app[web.1]: Enabling notebook nbextension nbextensions_configurator/config_menu/main...
2017-05-09T06:31:28.588890+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] Enabling notebook extension contrib_nbextensions_help_item/main...
2017-05-09T06:31:28.585798+00:00 app[web.1]: Enabling tree nbextension nbextensions_configurator/tree_tab/main...
2017-05-09T06:31:28.589791+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp]       - Validating: OK
2017-05-09T06:31:28.590968+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] - Editing config: /app/.jupyter/jupyter_nbconvert_config.json
2017-05-09T06:31:28.591109+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] --  Configuring nbconvert template path
2017-05-09T06:31:28.591301+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] --  Configuring nbconvert preprocessors
2017-05-09T06:31:28.591477+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] - Writing config: /app/.jupyter/jupyter_nbconvert_config.json
2017-05-09T06:31:28.591680+00:00 app[web.1]: [I 06:31:28 InstallContribNbextensionsApp] --  Writing updated config file /app/.jupyter/jupyter_nbconvert_config.json
2017-05-09T06:31:30.370547+00:00 app[web.1]: Enabling: jupyter_nbextensions_configurator
2017-05-09T06:31:30.370658+00:00 app[web.1]: - Writing config: /app/.jupyter
2017-05-09T06:31:30.371146+00:00 app[web.1]:     - Validating...
2017-05-09T06:31:30.371286+00:00 app[web.1]:       jupyter_nbextensions_configurator  OK
2017-05-09T06:31:30.371451+00:00 app[web.1]: Enabling notebook nbextension nbextensions_configurator/config_menu/main...
2017-05-09T06:31:30.372707+00:00 app[web.1]: Enabling tree nbextension nbextensions_configurator/tree_tab/main...
2017-05-09T06:31:32.274466+00:00 app[web.1]: [W 06:31:32.274 NotebookApp] server_extensions is deprecated, use nbserver_extensions
2017-05-09T06:31:32.381652+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
2017-05-09T06:31:32.381649+00:00 app[web.1]: Traceback (most recent call last):
2017-05-09T06:31:32.381655+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
2017-05-09T06:31:32.381654+00:00 app[web.1]:     context)
2017-05-09T06:31:32.381655+00:00 app[web.1]:     cursor.execute(statement, parameters)
2017-05-09T06:31:32.381656+00:00 app[web.1]: psycopg2.ProgrammingError: relation "pgcontents.users" does not exist
2017-05-09T06:31:32.381657+00:00 app[web.1]: LINE 1: INSERT INTO pgcontents.users (id) VALUES ('heroku')
2017-05-09T06:31:32.381658+00:00 app[web.1]:                     ^
2017-05-09T06:31:32.381659+00:00 app[web.1]: 
2017-05-09T06:31:32.381659+00:00 app[web.1]: 
2017-05-09T06:31:32.381664+00:00 app[web.1]: 
2017-05-09T06:31:32.381660+00:00 app[web.1]: The above exception was the direct cause of the following exception:
2017-05-09T06:31:32.381665+00:00 app[web.1]: Traceback (most recent call last):
2017-05-09T06:31:32.381665+00:00 app[web.1]:   File "/app/.conda/bin/jupyter-notebook", line 6, in <module>
2017-05-09T06:31:32.381666+00:00 app[web.1]:     sys.exit(notebook.notebookapp.main())
2017-05-09T06:31:32.381667+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/jupyter_core/application.py", line 267, in launch_instance
2017-05-09T06:31:32.381668+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instance
2017-05-09T06:31:32.381669+00:00 app[web.1]:   File "<decorator-gen-7>", line 2, in initialize
2017-05-09T06:31:32.381667+00:00 app[web.1]:     return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
2017-05-09T06:31:32.381671+00:00 app[web.1]:     return method(app, *args, **kwargs)
2017-05-09T06:31:32.381671+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/notebook/notebookapp.py", line 1294, in initialize
2017-05-09T06:31:32.381672+00:00 app[web.1]:     self.init_configurables()
2017-05-09T06:31:32.381669+00:00 app[web.1]:     app.initialize(argv)
2017-05-09T06:31:32.381670+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
2017-05-09T06:31:32.381677+00:00 app[web.1]:     log=self.log,
2017-05-09T06:31:32.381673+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/notebook/notebookapp.py", line 1038, in init_configurables
2017-05-09T06:31:32.381678+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/pgmanager.py", line 93, in __init__
2017-05-09T06:31:32.381679+00:00 app[web.1]:     super(PostgresContentsManager, self).__init__(*args, **kwargs)
2017-05-09T06:31:32.381679+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/managerbase.py", line 66, in __init__
2017-05-09T06:31:32.381680+00:00 app[web.1]:     self.ensure_user()
2017-05-09T06:31:32.381681+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/managerbase.py", line 70, in ensure_user
2017-05-09T06:31:32.381681+00:00 app[web.1]:     ensure_db_user(db, self.user_id)
2017-05-09T06:31:32.381682+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/pgcontents/query.py", line 89, in ensure_db_user
2017-05-09T06:31:32.381683+00:00 app[web.1]:     users.insert().values(id=user_id),
2017-05-09T06:31:32.381684+00:00 app[web.1]:     return meth(self, multiparams, params)
2017-05-09T06:31:32.381683+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 945, in execute
2017-05-09T06:31:32.381684+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/sql/elements.py", line 263, in _execute_on_connection
2017-05-09T06:31:32.381686+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1053, in _execute_clauseelement
2017-05-09T06:31:32.381685+00:00 app[web.1]:     return connection._execute_clauseelement(self, multiparams, params)
2017-05-09T06:31:32.381687+00:00 app[web.1]:     compiled_sql, distilled_params
2017-05-09T06:31:32.381689+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1402, in _handle_dbapi_exception
2017-05-09T06:31:32.381687+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1189, in _execute_context
2017-05-09T06:31:32.381688+00:00 app[web.1]:     context)
2017-05-09T06:31:32.381689+00:00 app[web.1]:     exc_info
2017-05-09T06:31:32.381690+00:00 app[web.1]:     reraise(type(exception), exception, tb=exc_tb, cause=cause)
2017-05-09T06:31:32.381690+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 203, in raise_from_cause
2017-05-09T06:31:32.381691+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/util/compat.py", line 186, in reraise
2017-05-09T06:31:32.381695+00:00 app[web.1]: LINE 1: INSERT INTO pgcontents.users (id) VALUES ('heroku')
2017-05-09T06:31:32.381696+00:00 app[web.1]:                     ^
2017-05-09T06:31:32.381692+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/base.py", line 1182, in _execute_context
2017-05-09T06:31:32.381697+00:00 app[web.1]:  [SQL: 'INSERT INTO pgcontents.users (id) VALUES (%(id)s)'] [parameters: {'id': 'heroku'}]
2017-05-09T06:31:32.381693+00:00 app[web.1]:     context)
2017-05-09T06:31:32.381695+00:00 app[web.1]: sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) relation "pgcontents.users" does not exist
2017-05-09T06:31:32.381691+00:00 app[web.1]:     raise value.with_traceback(tb)
2017-05-09T06:31:32.381694+00:00 app[web.1]:   File "/app/.conda/lib/python3.6/site-packages/sqlalchemy/engine/default.py", line 470, in do_execute
2017-05-09T06:31:32.381694+00:00 app[web.1]:     cursor.execute(statement, parameters)
2017-05-09T06:31:32.613651+00:00 heroku[web.1]: Process exited with status 1
2017-05-09T06:31:32.624275+00:00 heroku[web.1]: State changed from starting to crashed
2017-05-09T06:31:33.022150+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=hol42-jupyter.herokuapp.com request_id=5b2eb935-4c17-4ec8-984a-685fea921330 fwd="46.140.136.237" dyno= connect= service= status=503 bytes= protocol=https
2017-05-09T06:31:33.932917+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=hol42-jupyter.herokuapp.com request_id=dba66120-9937-4ac0-992c-c895fbc6d9d6 fwd="46.140.136.237" dyno= connect= service= status=503 bytes= protocol=https
2017-05-09T06:33:06.314226+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=hol42-jupyter.herokuapp.com request_id=7d34abfb-bb09-4e52-911d-78cb82af7504 fwd="46.140.136.237" dyno= connect= service= status=503 bytes= protocol=https
2017-05-09T06:33:07.254966+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=hol42-jupyter.herokuapp.com request_id=e672f5e4-afd3-4c49-bc49-2249bfe67db0 fwd="46.140.136.237" dyno= connect= service= status=503 bytes= protocol=https

How to use Python v2?

Hello, how can I add Python v2.x to the Jupiter Notebook Heroku Instance? I've tried adding a conda_runtime.txt file with the contents reading, Miniconda2-latest-Linux-x86_64.sh but it still seems to use Python v3.

notebook package not found

I'm getting this error in my heroku dashboard after forking and clicking deploy.

ResolvePackageNotFound: 
  - notebook=4
 !     Push rejected, failed to compile Python app.
 !     Push failed

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.