# Can't run jupyter notebook

**URL:** https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796
**Category:** General Usage
**Tags:** question, package, jupyter, ijulia
**Created:** [May 20, 2020, 1:53am UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796 "2020-05-20T01:53:59Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [May 20, 2020, 1:53am UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/1 "2020-05-20T01:53:59Z")

</div>

I can’t seem to start jupyter notebook from Mac terminal. I am

> using IJulia  
> jupyterlab()

or

```julia
using IJulia
jupyter notebook()

```

```julia

When the browswer opnes and I select Julia for the kernel, I get this (I am pasting part of the error) error:

> .julia/conda/3/lib/python3.7/site-packages/tornado/web.py", 
> line 1703, in _execute result = await result
> .julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
> line 742, in run yielded = self.gen.throw(*exc_info) # type: ignore
> .julia/conda/3/lib/python3.7/site-packages/notebook/services/sessions/handlers.py", line 72, in post
> type=mtype))
> .julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
> line 735, in run value = future.result()
> File "/Users/alieftekhari/.julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", line 742, in run
> yielded = self.gen.throw(*exc_info) # type: ignore
> .julia/conda/3/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", line 88, in create_session
> kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
> .julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
> line 735, in run value = future.result()
> julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
> line 742, in run yielded = self.gen.throw(*exc_info) # type: ignore

```

I can successfully run jupyter with python kernel

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [May 20, 2020, 4:27am UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/2 "2020-05-20T04:27:20Z")

</div>

> [@aebk2015](#):
>
> (I am pasting part of the error)

Can you paste the rest of the error?

---

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [May 20, 2020, 4:15pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/3 "2020-05-20T16:15:45Z")

</div>

Here is the full error:

```julia
.julia/conda/3/lib/python3.7/site-packages/tornado/web.py", 
line 1703, in _execute result = await result
.julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
line 742, in run yielded = self.gen.throw(*exc_info) # type: ignore
.julia/conda/3/lib/python3.7/site-packages/notebook/services/sessions/handlers.py", line 72, in post
    type=mtype))
.julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
line 735, in run value = future.result()
  File "/Users/alieftekhari/.julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
  line 742, in run
    yielded = self.gen.throw(*exc_info) # type: ignore
.julia/conda/3/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", 
line 88, in create_session
    kernel_id = yield self.start_kernel_for_session(session_id, path, name, type, kernel_name)
 .julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
 line 735, in run value = future.result()
 julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", 
 line 742, in run yielded = self.gen.throw(*exc_info) # type: ignore
.julia/conda/3/lib/python3.7/site-packages/notebook/services/sessions/sessionmanager.py", 
line 101, in start_kernel_for_session
self.kernel_manager.start_kernel(path=kernel_path, kernel_name=kernel_name)
  .julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", line 735, in run
    value = future.result()
 .julia/conda/3/lib/python3.7/site-packages/tornado/gen.py", line 209, in wrapper
    yielded = next(result)
.julia/conda/3/lib/python3.7/site-packages/notebook/services/kernels/kernelmanager.py", 
line 168, in start_kernel
    super(MappingKernelManager, self).start_kernel(**kwargs)
  .julia/conda/3/lib/python3.7/site-packages/jupyter_client/multikernelmanager.py", 
  line 158, in start_kernel
    km.start_kernel(**kwargs)
 .julia/conda/3/lib/python3.7/site-packages/jupyter_client/manager.py", 
 line 305, in start_kernel
    self.kernel = self._launch_kernel(kernel_cmd, **kw)
.julia/conda/3/lib/python3.7/site-packages/jupyter_client/manager.py", 
line 212, in _launch_kernel
    return launch_kernel(kernel_cmd, **kw)
  .julia/conda/3/lib/python3.7/site-packages/jupyter_client/launcher.py", 
  line 135, in launch_kernel
    proc = Popen(cmd, **kwargs)
.julia/conda/3/lib/python3.7/subprocess.py", line 800, in __init__
    restore_signals, start_new_session)
.julia/conda/3/lib/python3.7/subprocess.py", line 1551, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 
'/Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/bin/julia': 
'/Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/bin/julia'

```

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [May 20, 2020, 4:23pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/4 "2020-05-20T16:23:02Z")

</div>

This seems to be the relevant line:

> [@aebk2015](#):
>
> ```julia
> No such file or directory: 
> '/Applications/JuliaPro-1.4.1-1.app/Contents/Resources/julia/Contents/Resources/julia/bin/julia
> 
> ```

I’m guessing that you renamed or moved your Julia installation so that this path no longer works. Just re-run `build IJulia` at the package prompt in the Julia command line.

---

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [May 20, 2020, 4:37pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/5 "2020-05-20T16:37:59Z")

</div>

Sorry, I am just starting and not familiar with all the syntax; here is what I did but I got error:

```julia
$ julia
               _
   _ _ _(_)_ | Documentation: https://docs.julialang.org
  (_) | (_) (_) |
   _ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` | |
  | | |_| | | | (_| | | Version 1.4.1 (2020-04-14)
 _/ |\ __'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |

julia> build IJulia
ERROR: syntax: extra token "IJulia" after end of expression
Stacktrace:
 [1] top-level scope at none:0

```

---

<div class="post-metadata">

### Author: ![Rob\_van\_Weelderen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rob_van_weelderen/32/7621_2.png) [@Rob\_van\_Weelderen](https://discourse.julialang.org/u/Rob_van_Weelderen)
#### Post date: [May 20, 2020, 5:00pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/6 "2020-05-20T17:00:47Z")

</div>

First type `]` and only then when you get the `pkg>` prompt type `build IJulia`

---

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [May 20, 2020, 5:23pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/7 "2020-05-20T17:23:45Z")

</div>

Thanks; that fixed the syntax error

---

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [May 20, 2020, 5:25pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/8 "2020-05-20T17:25:05Z")

</div>

Thanks; that fixed the issue; I can now start jupyterlab() successfully but still unable to run jupyter notebook(); is IJulia only for jupyterlab?

---

<div class="post-metadata">

### Author: ![saulo.giovani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/saulo.giovani/32/15071_2.png) [@saulo.giovani](https://discourse.julialang.org/u/saulo.giovani)
#### Post date: [May 20, 2020, 6:40pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/9 "2020-05-20T18:40:37Z")

</div>

Normally, you should be able to run `jupyter notebook` in your terminal and have julia kernel as an option. Is julia among the options when you run `jupyter notebook` and click in New? Once I had a problem like this and I simply repeated `using Pkg; Pkg.add("IJulia")` steps and it worked for me.

You can see more about installation and running in this [link](https://nicedoc.io/JuliaLang/IJulia.jl).

---

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [May 20, 2020, 7:01pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/10 "2020-05-20T19:01:44Z")

</div>

As I wrote above, I can run jupyterlab with no error:

 ![Screen Shot 2020-05-20 at 11.59.57 AM](https://global.discourse-cdn.com/julialang/original/3X/f/7/f76d9be142c963b6e8c338af6acfe14704796922.png)

but I can not run jupyter notebook. When I try jupyter notebook, i get the following error:

```julia
julia> using IJulia

julia> jupyter notebook()

ERROR: syntax: extra token "notebook" after end of expression

Stacktrace:

 [1] top-level scope at REPL[1]:0

```

---

<div class="post-metadata">

### Author: ![saulo.giovani](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/saulo.giovani/32/15071_2.png) [@saulo.giovani](https://discourse.julialang.org/u/saulo.giovani)
#### Post date: [May 20, 2020, 7:19pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/11 "2020-05-20T19:19:36Z")

</div>

Ahhhh, I see. The way that I run `jupyter notebook` is directly in the Terminal, not in the julia REPL. Try `exit()` and then run `jupyter notebook`.

---

<div class="post-metadata">

### Author: ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)
#### Post date: [May 20, 2020, 7:21pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/12 "2020-05-20T19:21:39Z")

</div>

> [@aebk2015](#):
>
> Thanks; that fixed the issue; I can now start jupyterlab() successfully but still unable to run jupyter notebook(); i

At the Julia prompt, you run

```julia
using IJulia
notebook()

```

not `jupyter notebook` — the latter is shell syntax (e.g. for the terminal), not a Julia function.

---

<div class="post-metadata">

### Author: ![aebk2015](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@aebk2015](https://discourse.julialang.org/u/aebk2015)
#### Post date: [May 20, 2020, 7:30pm UTC](https://discourse.julialang.org/t/cant-run-jupyter-notebook/39796/13 "2020-05-20T19:30:13Z")

</div>

i am now getting different error when I open the jupyter, see below

 ![Screen Shot 2020-05-20 at 12.27.24 PM](https://global.discourse-cdn.com/julialang/original/3X/a/e/aec0f6952791ebae089dc57d8c0780ffd2631d5d.png)
